Class ISE
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- org.apache.druid.java.util.common.ISE
-
- All Implemented Interfaces:
Serializable
,SanitizableException
- Direct Known Subclasses:
ExpressionProcessingException
,SegmentMissingException
public class ISE extends IllegalStateException implements SanitizableException
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exception
sanitize(Function<String,String> errorMessageTransformFunction)
Apply the function for transforming the error message then return new Exception with sanitized fields and transformed message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
sanitize
public Exception sanitize(Function<String,String> errorMessageTransformFunction)
Description copied from interface:SanitizableException
Apply the function for transforming the error message then return new Exception with sanitized fields and transformed message. The {@param errorMessageTransformFunction} is only intended to be use to transform the error message String of the Exception as only the error message String is common to all Exception classes. For other fields (which may be unique to each particular Exception class), each implementation of this method can decide for itself how to sanitized those fields (i.e. leaving unchanged, changing to null, changing to a fixed String, etc.). Note that this method returns a new Exception of the same type since Exception error message is immutable.- Specified by:
sanitize
in interfaceSanitizableException
-
-