Class AlertException

All Implemented Interfaces:
Serializable

public class AlertException extends RuntimeException
Exception thrown to indicate an alert condition with an associated reason code.
See Also:
  • Constructor Details

    • AlertException

      public AlertException(String message, int reason)
      Constructs a new AlertException with the specified detail message and reason code.
      Parameters:
      message - the detail message
      reason - the reason code associated with this exception
  • Method Details

    • getReason

      public int getReason()
      Gets the reason code associated with this exception.
      Returns:
      the reason code