Class UnexpectedThrowable

  • All Implemented Interfaces:
    java.io.Serializable, NestedThrowable

    public class UnexpectedThrowable
    extends NestedError
    Thrown to indicate that a Throwable was caught but was not expected. This is typical when catching Throwables to handle and rethrow Exceptions and Errors.
    Version:
    $Revision$
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The serialVersionUID
        See Also:
        Constant Field Values
    • Constructor Detail

      • UnexpectedThrowable

        public UnexpectedThrowable​(java.lang.String msg)
        Construct a UnexpectedThrowable with the specified detail message.
        Parameters:
        msg - Detail message.
      • UnexpectedThrowable

        public UnexpectedThrowable​(java.lang.String msg,
                                   java.lang.Throwable nested)
        Construct a UnexpectedThrowable with the specified detail message and nested Throwable.
        Parameters:
        msg - Detail message.
        nested - Nested Throwable.
      • UnexpectedThrowable

        public UnexpectedThrowable​(java.lang.Throwable nested)
        Construct a UnexpectedThrowable with the specified nested Throwable.
        Parameters:
        nested - Nested Throwable.
      • UnexpectedThrowable

        public UnexpectedThrowable()
        Construct a UnexpectedThrowable with no detail.