public class UndeclaredThrowableException extends RuntimeException
Constructor and Description |
---|
UndeclaredThrowableException(Throwable exception)
Constructs a new
UndeclaredThrowableException instance with the
undeclared, checked exception that occurred. |
UndeclaredThrowableException(Throwable exception,
String detailMessage)
Constructs a new
UndeclaredThrowableException instance with the
undeclared, checked exception that occurred and a message. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the undeclared, checked exception that occurred, which may be
null . |
Throwable |
getUndeclaredThrowable()
Returns the undeclared, checked exception that occurred, which may be
null . |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UndeclaredThrowableException(Throwable exception)
UndeclaredThrowableException
instance with the
undeclared, checked exception that occurred.exception
- the undeclared, checked exception that occurredpublic UndeclaredThrowableException(Throwable exception, String detailMessage)
UndeclaredThrowableException
instance with the
undeclared, checked exception that occurred and a message.detailMessage
- the detail message for the exceptionexception
- the undeclared, checked exception that occurredpublic Throwable getUndeclaredThrowable()
null
.