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 Exception
transformIfNeeded(SanitizableException exception)
For a givenSanitizableException
apply the transformation strategy and return the sanitized Exception if the transformation stategy was applied.
-
-
-
Method Detail
-
transformIfNeeded
default Exception transformIfNeeded(SanitizableException exception)
For a givenSanitizableException
apply the transformation strategy and return the sanitized Exception if the transformation stategy was applied.
-
-