org.codehaus.cargo.util
Class CargoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
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 |
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 messagethrowable
- the exception to wrap
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.