|
||||||||||
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.apache.torque.TorqueRuntimeException
public class TorqueRuntimeException
This is a base class of runtime exeptions thrown by Torque.
This class represents a non-checked type exception (see
RuntimeException
).
It is intended to ease the debugging by carrying on the information about the
exception which was caught and provoked throwing the current exception.
Catching and rethrowing may occur multiple times, and provided that all
exceptions except the first one are descendands of
TorqueRuntimeException
, when the exception is finally printed
out using any of the printStackTrace()
methods, the stacktrace
will contain the information about all exceptions thrown and caught on the
way.
Constructor Summary | |
---|---|
TorqueRuntimeException()
Constructs a new TorqueRuntimeException without specified
detail message. |
|
TorqueRuntimeException(java.lang.String msg)
Constructs a new TorqueRuntimeException with specified
detail message. |
|
TorqueRuntimeException(java.lang.String msg,
java.lang.Throwable nested)
Constructs a new TorqueRuntimeException with specified
detail message and nested Throwable . |
|
TorqueRuntimeException(java.lang.Throwable nested)
Constructs a new TorqueRuntimeException with specified
nested Throwable . |
Method Summary | |
---|---|
void |
printStackTrace()
Prints the stack trace of this exception the the standar error stream. |
void |
printStackTrace(java.io.PrintStream out)
Prints the stack trace of this exception to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter out)
Prints the stack trace of this exception to the specified print writer. |
void |
printStackTrace(java.io.PrintWriter out,
int skip)
Prints the stack trace of this exception skiping a specified number of stack frames. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TorqueRuntimeException()
TorqueRuntimeException
without specified
detail message.
public TorqueRuntimeException(java.lang.String msg)
TorqueRuntimeException
with specified
detail message.
msg
- the error message.public TorqueRuntimeException(java.lang.Throwable nested)
TorqueRuntimeException
with specified
nested Throwable
.
nested
- the exception or error that caused this exception
to be thrown.public TorqueRuntimeException(java.lang.String msg, java.lang.Throwable nested)
TorqueRuntimeException
with specified
detail message and nested Throwable
.
msg
- the error message.nested
- the exception or error that caused this exception
to be thrown.Method Detail |
---|
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
out
- PrintStream
to use for outputpublic void printStackTrace(java.io.PrintWriter out)
printStackTrace
in class java.lang.Throwable
out
- PrintWriter
to use for output.public void printStackTrace(java.io.PrintWriter out, int skip)
out
- PrintWriter
to use for output.skip
- the numbere of stack frames to skip.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |