Class UndeclaredThrowableException

    • Constructor Detail

      • UndeclaredThrowableException

        public UndeclaredThrowableException​(Throwable exception)
        Constructs a new UndeclaredThrowableException instance with the undeclared, checked exception that occurred.
        Parameters:
        exception - the undeclared, checked exception that occurred
      • UndeclaredThrowableException

        public UndeclaredThrowableException​(Throwable exception,
                                            String detailMessage)
        Constructs a new UndeclaredThrowableException instance with the undeclared, checked exception that occurred and a message.
        Parameters:
        detailMessage - the detail message for the exception
        exception - the undeclared, checked exception that occurred
    • Method Detail

      • getUndeclaredThrowable

        public Throwable getUndeclaredThrowable()
        Returns the undeclared, checked exception that occurred, which may be null.
        Returns:
        the undeclared, checked exception that occurred
      • getCause

        public Throwable getCause()
        Returns the undeclared, checked exception that occurred, which may be null.
        Overrides:
        getCause in class Throwable
        Returns:
        the undeclared, checked exception that occurred