|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sas.hls.common.exception.AbstractCheckedException
public abstract class AbstractCheckedException
Parent class of all checked exceptions created in the java API.
Constructor Summary | |
---|---|
AbstractCheckedException(String message)
Construct an AbstractCheckedException with the specified detail message. |
|
AbstractCheckedException(String message,
String localizedMessage)
Construct an AbstractCheckedException with the specified detail and localized message. |
|
AbstractCheckedException(String message,
String localizedMessage,
Throwable cause)
Construct an 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. |
Method Summary | |
---|---|
boolean |
contains(Class<?> exType)
Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type. |
String |
getLocalizedMessage()
|
String |
getMessage()
Return the detail message, including the message from the nested exception if there is one. |
Throwable |
getMostSpecificCause()
Retrieve the most specific cause of this exception, that is, either the innermost cause (root cause) or this exception itself. |
Throwable |
getRootCause()
Retrieve the innermost cause of this exception, if any. |
void |
setLocalizedMessage(String localizedMessage)
Set localized message value for this exception |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 exceptionMethod Detail |
---|
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public void setLocalizedMessage(String localizedMessage)
localizedMessage
- public String getMessage()
getMessage
in class Throwable
public Throwable getRootCause()
null
if nonepublic Throwable getMostSpecificCause()
Differs from getRootCause()
in that it falls back to the present exception if there is no root cause.
null
)public boolean contains(Class<?> exType)
exType
- the exception type to look for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |