Class SanitizerInstantiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.rabinarayanpatra.sanitizer.core.SanitizerInstantiationException
- All Implemented Interfaces:
Serializable
Thrown when a
FieldSanitizer implementation cannot be instantiated.
This exception typically occurs when the sanitizer class lacks a no-arg constructor, or the constructor is not accessible at runtime.
throw new SanitizerInstantiationException("Cannot create sanitizer", e);
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSanitizerInstantiationException(String message, Throwable cause) Constructs a newSanitizerInstantiationExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SanitizerInstantiationException
Constructs a newSanitizerInstantiationExceptionwith the specified detail message and cause.- Parameters:
message- the detail message explaining the failurecause- the underlying exception that caused instantiation to fail
-