Class UnexpectedException

  • All Implemented Interfaces:
    Serializable

    public class UnexpectedException
    extends RuntimeException
    An exception which is unreasonable to expect and is caused by misconfiguration or system failure. This is identical to RuntimeException but subclasses it just so that it can be caught if desired.
    Since:
    3.3M1
    Version:
    $Id: db0cf3c7dbee37ea80d507a70b970f25694bd700 $
    See Also:
    Serialized Form
    • Constructor Detail

      • UnexpectedException

        public UnexpectedException()
        Constructs a new unexpected exception with null as its detail message.
      • UnexpectedException

        public UnexpectedException​(String message)
        Constructs a new unexpected exception with the specified detail message.
        Parameters:
        message - the String to explain the exception.
      • UnexpectedException

        public UnexpectedException​(String message,
                                   Throwable cause)
        Constructs a new unexpected exception with the specified detail message and cause.
        Parameters:
        message - the String to explain the exception.
        cause - the Throwable which caused this exception.
      • UnexpectedException

        public UnexpectedException​(Throwable cause)
        Constructs a new unexpected exception with the specified cause.
        Parameters:
        cause - the Throwable which caused this exception.