org.xoe.core.packages
Class PackageException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.xoe.core.packages.PackageException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ExpirationVerifierException, InstallException, PackageDescriptionException, PackageIncompleteException, PackageNotFoundException
- public class PackageException
- extends Exception
Base class for all packaging exceptions. Can be used to wrap a Throwable
(such as an Error, RuntimeException, or other Exceptions) before throwing
from a packaging function. Can also be correlated to the package that 'caused'
the exception.
- See Also:
- Serialized Form
PackageException
public PackageException(String message)
- Constructs an exception with a brief message
- Parameters:
message
- the message passed to the Exception constructor
PackageException
public PackageException(Throwable t)
- Wraps a Throwable in a PackageException
- Parameters:
t
- the original Throwable
PackageException
public PackageException(Throwable t,
String message)
- Wraps a Throwable in a PackageException and adds a short message
- Parameters:
t
- the original Throwablemessage
- the message passed to the Exception constructor
PackageException
public PackageException(Throwable t,
String message,
String detail)
- Wraps a Throwable in a PackageException, adds a short message,
and also a more detailed description
- Parameters:
t
- the original Throwablemessage
- the message passed to the Exception constructordetail
- a more detailed description of the error
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class Throwable
printStackTrace
public void printStackTrace(PrintStream s)
- Overrides:
printStackTrace
in class Throwable
printStackTrace
public void printStackTrace(PrintWriter pw)
- Overrides:
printStackTrace
in class Throwable
toString
public String toString()
- Overrides:
toString
in class Throwable