Interface ErrorResponseTransformStrategy
-
- All Known Implementing Classes:
AllowedRegexErrorResponseTransformStrategy,NoErrorResponseTransformStrategy
public interface ErrorResponseTransformStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NotNull Function<String,String>getErrorMessageTransformFunction()Return a function for checking and transforming the error message if needed.default ExceptiontransformIfNeeded(SanitizableException exception)For a givenSanitizableExceptionapply the transformation strategy and return the sanitized Exception if the transformation stategy was applied.
-
-
-
Method Detail
-
transformIfNeeded
default Exception transformIfNeeded(SanitizableException exception)
For a givenSanitizableExceptionapply the transformation strategy and return the sanitized Exception if the transformation stategy was applied.
-
-