|
||||||||||
| 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
|
+--org.objectweb.jonathan.apis.kernel.JonathanException
JonathanException is the supertype of all Jonathan exceptions. It includes a mechanism to wrap exceptions of an other type so that the stack trace and the message returned by a Jonathan exception correspond to that of the wrapped exception.
| Constructor Summary | |
JonathanException()
Constructs a new JonathanException with no detail message. |
|
JonathanException(Exception exception)
Builds a JonathanException that wraps another exception. |
|
JonathanException(String s)
Builds a JonathanException with a detail message. |
|
| Method Summary | |
String |
getMessage()
Returns the detail message of this JonathanException. |
void |
printStackTrace()
Prints this JonathanException and its backtrace to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this JonathanException and its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this 'Throwable' and its backtrace to the specified print writer. |
Exception |
represents()
Returns the exception wrapped by this JonathanException. |
String |
toString()
Returns a short description of this JonathanException. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JonathanException()
public JonathanException(String s)
public JonathanException(Exception exception)
| Method Detail |
public String getMessage()
If this exception represents another exception, the returned message is that of the represented exception.
getMessage in class Throwablepublic String toString()
If this exception represents another exception, the returned description is that of the represented exception.
toString in class Throwablepublic void printStackTrace()
If this exception represents another exception, the printed description and backtrace are that of the represented exception.
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
If this exception represents another exception, the printed description and backtrace are that of the represented exception.
printStackTrace in class Throwables - the print stream.public void printStackTrace(PrintWriter s)
If this exception represents another exception, the printed description and backtrace are that of the represented exception.
printStackTrace in class Throwables - the print writer.public Exception represents()
If this exception doesn't wrap any other exception, it returns itself.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||