Class StackableRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.pentaho.reporting.libraries.base.util.StackableRuntimeException
-
- All Implemented Interfaces:
Serializable
public class StackableRuntimeException extends RuntimeException
Deprecated.use RuntimeExpression instead.A baseclass for RuntimeExceptions, which could have parent exceptions. These parent exceptions are raised in a subclass and are now wrapped into a subclass of this Exception. The parents are printed when this exception is printed. This class exists mainly for debugging reasons, as with them it is easier to detect the root cause of an error.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StackableRuntimeException()
Deprecated.Creates a StackableRuntimeException with no message and no parent.StackableRuntimeException(String message)
Deprecated.Creates an exception.StackableRuntimeException(String message, Exception ex)
Deprecated.Creates an exception.StackableRuntimeException(String message, Throwable ex)
Deprecated.Creates an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Exception
getParent()
Deprecated.use the throwable instead.Throwable
getParentThrowable()
Deprecated.void
printStackTrace()
Deprecated.Prints the stack trace to System.err.void
printStackTrace(PrintStream stream)
Deprecated.Prints the stack trace to the specified stream.void
printStackTrace(PrintWriter writer)
Deprecated.Prints the stack trace to the specified writer.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
StackableRuntimeException
public StackableRuntimeException()
Deprecated.Creates a StackableRuntimeException with no message and no parent.
-
StackableRuntimeException
public StackableRuntimeException(String message, Throwable ex)
Deprecated.Creates an exception.- Parameters:
message
- the exception message.ex
- the parent exception.
-
StackableRuntimeException
public StackableRuntimeException(String message, Exception ex)
Deprecated.Creates an exception.- Parameters:
message
- the exception message.ex
- the parent exception.
-
StackableRuntimeException
public StackableRuntimeException(String message)
Deprecated.Creates an exception.- Parameters:
message
- the exception message.
-
-
Method Detail
-
getParent
public Exception getParent()
Deprecated.use the throwable instead.Returns the parent exception (possibly null).- Returns:
- the parent exception.
-
getParentThrowable
public Throwable getParentThrowable()
Deprecated.
-
printStackTrace
public void printStackTrace(PrintStream stream)
Deprecated.Prints the stack trace to the specified stream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
stream
- the output stream.
-
printStackTrace
public void printStackTrace(PrintWriter writer)
Deprecated.Prints the stack trace to the specified writer.- Overrides:
printStackTrace
in classThrowable
- Parameters:
writer
- the writer.
-
printStackTrace
public void printStackTrace()
Deprecated.Prints the stack trace to System.err.- Overrides:
printStackTrace
in classThrowable
-
-