Class ApplicationException

  • All Implemented Interfaces:
    Serializable

    public class ApplicationException
    extends RichRuntimeException
    The ApplicationException exception is thrown to indicate an application error condition.
    Author:
    Marcus Portmann
    See Also:
    Serialized Form
    • Constructor Detail

      • ApplicationException

        public ApplicationException()
        Constructs a new ApplicationException with null as its message.
      • ApplicationException

        public ApplicationException​(String message)
        Constructs a new ApplicationException with the specified message.
        Parameters:
        message - the message saved for later retrieval by the getMessage() method
      • ApplicationException

        public ApplicationException​(Throwable cause)
        Constructs a new ApplicationException with the specified cause and a message of (cause==null ? null : cause.toString()) (which typically contains the class and message of cause).
        Parameters:
        cause - The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
      • ApplicationException

        public ApplicationException​(String code,
                                    String message)
        Constructs a new ApplicationException with the specified code and message.
        Parameters:
        code - the error code for the error
        message - the message saved for later retrieval by the getMessage() method
      • ApplicationException

        public ApplicationException​(String message,
                                    Throwable cause)
        Constructs a new ApplicationException with the specified message and cause.
        Parameters:
        message - the message saved for later retrieval by the getMessage() method
        cause - The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
      • ApplicationException

        public ApplicationException​(String code,
                                    String message,
                                    Throwable cause)
        Constructs a new ApplicationException with the specified code, message and cause.
        Parameters:
        code - the error code for the error
        message - the message saved for later retrieval by the getMessage() method
        cause - The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)