org.codehaus.cargo.util
Class CargoException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.codehaus.cargo.util.CargoException
All Implemented Interfaces:
java.io.Serializable

public class CargoException
extends java.lang.RuntimeException

Base exception class for all Cargo classes.

Version:
$Id: CargoException.java 301 2005-03-17 17:14:43Z vmassol $
See Also:
Serialized Form

Constructor Summary
CargoException(java.lang.String message)
           
CargoException(java.lang.String message, java.lang.Throwable throwable)
           
 
Method Summary
 java.lang.Throwable getOriginalThrowable()
           
 void printStackTrace()
          Print the full stack trace, including the original exception.
 void printStackTrace(java.io.PrintStream ps)
          Print the full stack trace, including the original exception.
 void printStackTrace(java.io.PrintWriter pw)
          Print the full stack trace, including the original exception.
 
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

CargoException

public CargoException(java.lang.String message)
Parameters:
message - the exception message

CargoException

public CargoException(java.lang.String message,
                      java.lang.Throwable throwable)
Parameters:
message - the exception message
throwable - the exception to wrap
Method Detail

getOriginalThrowable

public java.lang.Throwable getOriginalThrowable()
Returns:
the wrapped exception

printStackTrace

public void printStackTrace()
Print the full stack trace, including the original exception.


printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Print the full stack trace, including the original exception.

Parameters:
ps - the byte stream in which to print the stack trace

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Print the full stack trace, including the original exception.

Parameters:
pw - the character stream in which to print the stack trace


Copyright © 2004-2007 Codehaus. All Rights Reserved.