org.codehaus.cargo.util
Class CargoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.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 1705 2008-09-02 13:14:55Z adriana $
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.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

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

Overrides:
printStackTrace in class java.lang.Throwable
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.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
pw - the character stream in which to print the stack trace


Copyright © 2004-2011 Codehaus. All Rights Reserved.