Class CheckerException

All Implemented Interfaces:
Serializable

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

    • CheckerException

      protected CheckerException(String message)
      Constructs a CheckerException with the specified message.
      Parameters:
      message - the detail message
    • CheckerException

      protected CheckerException(Exception exception)
      Constructs a CheckerException from another exception, using its cause's localized message.
      Parameters:
      exception - the exception to wrap
  • Method Details

    • of

      public static CheckerException of(Exception exception)
      Factory method to create a CheckerException from another exception.
      Parameters:
      exception - the exception to wrap
      Returns:
      a new CheckerException instance
    • toString

      public String toString()
      Returns a string representation of the exception, prefixed with " - ".
      Overrides:
      toString in class Throwable
      Returns:
      the string representation of the exception