|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.freehep.util.NestedRuntimeException
A runtime exception with an embedded (nested) exception. The NestedRuntimeException is particluarly useful for converting a checked exception to a non-checked (runtime) exception, without loosing the information associated with the checked exception.
NestedException
,
HasNestedException
,
Serialized FormConstructor Summary | |
NestedRuntimeException()
Create an exception with no message and no nested exception. |
|
NestedRuntimeException(String message)
Create an exception with no nested exception |
|
NestedRuntimeException(String message,
Throwable detail)
Create a remote exception with the specified message, and the nested exception specified. |
|
NestedRuntimeException(Throwable detail)
Create a nested exception with the specified nested exception |
Method Summary | |
String |
getMessage()
Get the message text, including the message text if the nested exception |
Throwable |
getNestedException()
Get the exception nested inside |
String |
getSimpleMessage()
Get the message text, without the message text of the nested exception |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, 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 NestedRuntimeException()
public NestedRuntimeException(String message)
public NestedRuntimeException(Throwable detail)
detail
- The nested exceptionpublic NestedRuntimeException(String message, Throwable detail)
detail
- The nested exceptionMethod Detail |
public Throwable getNestedException()
HasNestedException
getNestedException
in interface HasNestedException
public String getMessage()
HasNestedException
getMessage
in interface HasNestedException
getMessage
in class Throwable
public String getSimpleMessage()
HasNestedException
getSimpleMessage
in interface HasNestedException
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |