|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface implemented by some exceptions to indicate that they have an additional exception nested inside of them. This is very useful in order to be able to add extra information to an exception without losing the original information. For example:
try { readFile(fileName); } catch (IOException x) { throw new NestedException("Error while reading "+fileName,x); }
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 |
Method Detail |
public Throwable getNestedException()
public String getSimpleMessage()
public String getMessage()
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |