org.pentaho.reporting.libraries.base.util
public class StackableException extends Exception
UNKNOWN: UseOfSystemOutOrSystemErr
Method Summary | |
---|---|
String | getMessage()
Returns the detail message string of this throwable.
|
Exception | getParent()
Returns the parent exception (possibly null).
|
Throwable | getParentThrowable() |
void | printStackTrace(PrintStream stream)
Prints the stack trace to the specified stream.
|
void | printStackTrace(PrintWriter writer)
Prints the stack trace to the specified writer.
|
void | printStackTrace()
Prints this Throwable and its backtrace to the standard error stream. |
String | toString()
Returns a short description of this throwable.
|
Returns: the detail message string of this Throwable instance (which may be null).
Deprecated: use the throwable instead.
Returns the parent exception (possibly null).Returns: the parent exception.
Parameters: stream the output stream.
Parameters: writer the writer.
Throwable
and its backtrace to the standard error stream. This method prints a stack trace
for this Throwable
object on the error output stream that is the value of the field
System.err
. The first line of output contains the result of the toString method for this
object. Remaining lines represent data previously recorded by the method StackableException. The format of
this information depends on the implementation, but the following example may be regarded as typical:
This example was produced by running the program:java.lang.NullPointerException at MyClass.mash(MyClass.java:9) at MyClass.crunch(MyClass.java:6) at MyClass.main(MyClass.java:3)
class MyClass { public static void main(String[] argv) { crunch(null); } static void crunch(int[] a) { mash(a); } static void mash(int[] b) { System.out.println(b[0]); } }
See Also: System#err
Throwable
object was created with a non-null detail
message string, then the result is the concatenation of three strings:
Throwable
object was created with a null
detail message string, then the name of the actual class of this object
is returned.
Returns: a string representation of this throwable.