Class NoErrorResponseTransformStrategy
java.lang.Object
org.apache.druid.common.exception.NoErrorResponseTransformStrategy
- All Implemented Interfaces:
ErrorResponseTransformStrategy
public class NoErrorResponseTransformStrategy
extends Object
implements ErrorResponseTransformStrategy
Error response transform strategy that does nothing and simply return the same Exception back without any change
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn a function for checking and transforming the error message if needed.inthashCode()transformIfNeeded(SanitizableException exception) For a givenSanitizableExceptionapply the transformation strategy and return the sanitized Exception if the transformation stategy was applied.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.common.exception.ErrorResponseTransformStrategy
maybeTransform
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoErrorResponseTransformStrategy
public NoErrorResponseTransformStrategy()
-
-
Method Details
-
transformIfNeeded
Description copied from interface:ErrorResponseTransformStrategyFor a givenSanitizableExceptionapply the transformation strategy and return the sanitized Exception if the transformation stategy was applied.- Specified by:
transformIfNeededin interfaceErrorResponseTransformStrategy
-
getErrorMessageTransformFunction
Description copied from interface:ErrorResponseTransformStrategyReturn a function for checking and transforming the error message if needed. Function can return null if error message needs to be omitted or return String to be use instead.- Specified by:
getErrorMessageTransformFunctionin interfaceErrorResponseTransformStrategy
-
equals
-
hashCode
public int hashCode()
-