| ★ wanayoo — archive 1999 http://sourceware.cygnus.com/kawa/api/gnu/mapping/WrappedException.html | Nouvelle recherche | Portail wanayoo |
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--gnu.mapping.WrappedException
Encapsulate some Exception inside a RuntimeException. Inspired by org.xml.sax.SAXException written by David Megginson.
| Constructor Summary | |
WrappedException(java.lang.Exception e)
Create a new WrappedException wrapping an existing exception. |
|
WrappedException(java.lang.String message)
Create a new WrappedException. |
|
WrappedException(java.lang.String message,
java.lang.Exception e)
Create a new WrappedException from an existing exception. |
|
| Method Summary | |
java.lang.Exception |
getException()
Return the embedded exception, if any. |
java.lang.String |
getMessage()
Return a detail message for this exception. |
java.lang.String |
toString()
Convert this exception to a string. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
printStackTrace,
printStackTrace,
printStackTrace |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public WrappedException(java.lang.String message)
message - The error or warning message.public WrappedException(java.lang.Exception e)
The existing exception will be embedded in the new one, and its message will become the default message for the WrappedException.
e - The exception to be wrapped in a WrappedException.
public WrappedException(java.lang.String message,
java.lang.Exception e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message - The detail message.e - The exception to be wrapped in a WrappedException.| Method Detail |
public java.lang.String getMessage()
If there is a embedded exception, and if the WrappedException has no detail message of its own, this method will return the detail message from the embedded exception.
public java.lang.Exception getException()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||