|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sas.hls.common.exception.AbstractRuntimeException
public abstract class AbstractRuntimeException
Parent class of all Runtime exceptions created in the java API.
Constructor Summary | |
---|---|
AbstractRuntimeException(String message)
Construct an AbstractRuntimeException with the specified detail message. |
|
AbstractRuntimeException(String message,
String localizedMessage)
Construct an AbstractRuntimeException with the specified detail and localized message. |
|
AbstractRuntimeException(String message,
String localizedMessage,
Throwable cause)
Construct an AbstractRuntimeException with the specified detail message, localized message and nested
exception. |
|
AbstractRuntimeException(String message,
Throwable cause)
Construct an AbstractRuntimeException 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 the 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 AbstractRuntimeException(String message)
AbstractRuntimeException
with the specified detail message.
message
- the detail messagepublic AbstractRuntimeException(String message, String localizedMessage)
AbstractRuntimeException
with the specified detail and localized message.
message
- the detail messagelocalizedMessage
- the localized messagepublic AbstractRuntimeException(String message, Throwable cause)
AbstractRuntimeException
with the specified detail message and nested exception.
message
- the detail messagecause
- the nested exceptionpublic AbstractRuntimeException(String message, String localizedMessage, Throwable cause)
AbstractRuntimeException
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 |