Class AllowedRegexErrorResponseTransformStrategy
- java.lang.Object
-
- org.apache.druid.common.exception.AllowedRegexErrorResponseTransformStrategy
-
- All Implemented Interfaces:
ErrorResponseTransformStrategy
public class AllowedRegexErrorResponseTransformStrategy extends Object implements ErrorResponseTransformStrategy
-
-
Constructor Summary
Constructors Constructor Description AllowedRegexErrorResponseTransformStrategy(List<String> allowedRegexString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Function<String,String>
getErrorMessageTransformFunction()
Return a function for checking and transforming the error message if needed.int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.common.exception.ErrorResponseTransformStrategy
transformIfNeeded
-
-
-
-
Method Detail
-
getErrorMessageTransformFunction
public Function<String,String> getErrorMessageTransformFunction()
Description copied from interface:ErrorResponseTransformStrategy
Return 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:
getErrorMessageTransformFunction
in interfaceErrorResponseTransformStrategy
-
-