public class JonathanException
extends java.lang.Exception
Constructor and Description |
---|
JonathanException()
Constructs a new JonathanException with no detail message.
|
JonathanException(java.lang.Exception exception)
Builds a JonathanException that wraps another exception.
|
JonathanException(java.lang.String s)
Builds a JonathanException with a detail message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the detail message of this JonathanException.
|
void |
printStackTrace()
Prints this JonathanException and its backtrace to the
standard error stream.
|
void |
printStackTrace(java.io.PrintStream s)
Prints this JonathanException and its backtrace to the
specified print stream.
|
void |
printStackTrace(java.io.PrintWriter s)
Prints this 'Throwable' and its backtrace to the specified
print writer.
|
java.lang.Exception |
represents()
Returns the exception wrapped by this JonathanException.
|
java.lang.String |
toString()
Returns a short description of this JonathanException.
|
public JonathanException()
public JonathanException(java.lang.String s)
public JonathanException(java.lang.Exception exception)
public java.lang.String getMessage()
If this exception represents another exception, the returned message is that of the represented exception.
getMessage
in class java.lang.Throwable
public java.lang.String toString()
If this exception represents another exception, the returned description is that of the represented exception.
toString
in class java.lang.Throwable
public void printStackTrace()
If this exception represents another exception, the printed description and backtrace are that of the represented exception.
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
If this exception represents another exception, the printed description and backtrace are that of the represented exception.
printStackTrace
in class java.lang.Throwable
s
- the print stream.public void printStackTrace(java.io.PrintWriter s)
If this exception represents another exception, the printed description and backtrace are that of the represented exception.
printStackTrace
in class java.lang.Throwable
s
- the print writer.public java.lang.Exception represents()
If this exception doesn't wrap any other exception, it returns itself.