Class SanitizerInstantiationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.rabinarayanpatra.sanitizer.core.SanitizerInstantiationException
All Implemented Interfaces:
Serializable

public class SanitizerInstantiationException extends RuntimeException
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 Details

    • SanitizerInstantiationException

      public SanitizerInstantiationException(String message, Throwable cause)
      Constructs a new SanitizerInstantiationException with the specified detail message and cause.
      Parameters:
      message - the detail message explaining the failure
      cause - the underlying exception that caused instantiation to fail