org.pentaho.platform.api.util
Class PentahoChainedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.pentaho.platform.api.util.PentahoChainedException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuditException, RepositoryException, SchedulerException, SQLResultSetException, UIException, UIException

public class PentahoChainedException
extends RuntimeException

This is the base Pentaho Exception class that handles chained exceptions.

See Also:
Serialized Form

Constructor Summary
PentahoChainedException()
           
PentahoChainedException(String message)
          Constructor
PentahoChainedException(String message, Throwable reas)
          Constructor
PentahoChainedException(Throwable reas)
          Constructor
 
Method Summary
 Throwable getRootCause()
          Gets the root cause of the exception.
 void printStackTrace(PrintStream ps)
          Prints the exception trace to the specified print stream.
 void printStackTrace(PrintWriter pw)
          Prints the exception trace to the specified print writer
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PentahoChainedException

public PentahoChainedException()

PentahoChainedException

public PentahoChainedException(String message)
Constructor

Parameters:
message - The message to be carried by the exception.

PentahoChainedException

public PentahoChainedException(String message,
                               Throwable reas)
Constructor

Parameters:
message - The message.
reas - The root cause of the exception.

PentahoChainedException

public PentahoChainedException(Throwable reas)
Constructor

Parameters:
reas - The cause of this exception
Method Detail

getRootCause

public Throwable getRootCause()
Gets the root cause of the exception.


printStackTrace

public void printStackTrace(PrintWriter pw)
Prints the exception trace to the specified print writer

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream ps)
Prints the exception trace to the specified print stream.

Overrides:
printStackTrace in class Throwable