public class NoErrorResponseTransformStrategy extends Object implements ErrorResponseTransformStrategy
Modifier and Type | Field and Description |
---|---|
static NoErrorResponseTransformStrategy |
INSTANCE |
Constructor and Description |
---|
NoErrorResponseTransformStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Function<String,String> |
getErrorMessageTransformFunction()
Return a function for checking and transforming the error message if needed.
|
int |
hashCode() |
Exception |
transformIfNeeded(SanitizableException exception)
For a given
SanitizableException apply the transformation strategy and return the sanitized Exception
if the transformation stategy was applied. |
public static final NoErrorResponseTransformStrategy INSTANCE
public Exception transformIfNeeded(SanitizableException exception)
ErrorResponseTransformStrategy
SanitizableException
apply the transformation strategy and return the sanitized Exception
if the transformation stategy was applied.transformIfNeeded
in interface ErrorResponseTransformStrategy
public Function<String,String> getErrorMessageTransformFunction()
ErrorResponseTransformStrategy
getErrorMessageTransformFunction
in interface ErrorResponseTransformStrategy
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.