Package 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:
Serializable
- Direct Known Subclasses:
ContainerException
,JvmLauncherException
,MergeException
public class CargoException extends RuntimeException
Base exception class for all Cargo classes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CargoException(String message)
CargoException(String message, Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getOriginalThrowable()
void
printStackTrace()
Print the full stack trace, including the original exception.void
printStackTrace(PrintStream ps)
Print the full stack trace, including the original exception.void
printStackTrace(PrintWriter pw)
Print the full stack trace, including the original exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Method Detail
-
getOriginalThrowable
public Throwable getOriginalThrowable()
- Returns:
- the wrapped exception
-
printStackTrace
public void printStackTrace()
Print the full stack trace, including the original exception.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace(PrintStream ps)
Print the full stack trace, including the original exception.- Overrides:
printStackTrace
in classThrowable
- Parameters:
ps
- the byte stream in which to print the stack trace
-
printStackTrace
public void printStackTrace(PrintWriter pw)
Print the full stack trace, including the original exception.- Overrides:
printStackTrace
in classThrowable
- Parameters:
pw
- the character stream in which to print the stack trace
-
-