Class CheckerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
util.CheckerException
- All Implemented Interfaces:
Serializable
CheckerException is a custom unchecked exception used for validation and checking errors.
It provides factory methods and custom string representation for error reporting.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CheckerException
(Exception exception) Constructs a CheckerException from another exception, using its cause's localized message.protected
CheckerException
(String message) Constructs a CheckerException with the specified message. -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckerException
Factory method to create a CheckerException from another exception.toString()
Returns a string representation of the exception, prefixed with " - ".Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
CheckerException
Constructs a CheckerException with the specified message.- Parameters:
message
- the detail message
-
CheckerException
Constructs a CheckerException from another exception, using its cause's localized message.- Parameters:
exception
- the exception to wrap
-
-
Method Details
-
of
Factory method to create a CheckerException from another exception.- Parameters:
exception
- the exception to wrap- Returns:
- a new CheckerException instance
-
toString
-