public abstract class AbstractCheckedException extends Exception
Constructor and Description |
---|
AbstractCheckedException(String message)
Construct an
AbstractCheckedException with the specified detail message. |
AbstractCheckedException(String message,
String localizedMessage)
Construct a
AbstractCheckedException with the specified detail and localized message. |
AbstractCheckedException(String message,
String localizedMessage,
Throwable cause)
Construct a
AbstractCheckedException with the specified detail message, localized message and nested
exception. |
AbstractCheckedException(String message,
Throwable cause)
Construct an
AbstractCheckedException with the specified detail message and nested exception. |
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedMessage() |
String |
getMessage()
Return the detail message, including the message from the nested exception if there is one.
|
Throwable |
getRootCause()
Retrieve the innermost cause of this exception, if any.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AbstractCheckedException(String message)
AbstractCheckedException
with the specified detail message.message
- the detail messagepublic AbstractCheckedException(String message, String localizedMessage)
AbstractCheckedException
with the specified detail and localized message.message
- the detail messagelocalizedMessage
- the localized messagepublic AbstractCheckedException(String message, Throwable cause)
AbstractCheckedException
with the specified detail message and nested exception.message
- the detail messagecause
- the nested exceptionpublic AbstractCheckedException(String message, String localizedMessage, Throwable cause)
AbstractCheckedException
with the specified detail message, localized message and nested
exception.message
- the detail messagelocalizedMessage
- the localized messagecause
- the nested exceptionpublic String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String getMessage()
getMessage
in class Throwable
public Throwable getRootCause()
null
if noneCopyright (c) 2017, SAS Institute Inc., Cary, NC, USA