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

Constructor Summary
PackageException(String message)
          Constructs an exception with a brief message
PackageException(Throwable t)
          Wraps a Throwable in a PackageException
PackageException(Throwable t, String message)
          Wraps a Throwable in a PackageException and adds a short message
PackageException(Throwable t, String message, String detail)
          Wraps a Throwable in a PackageException, adds a short message, and also a more detailed description
 
Method Summary
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter pw)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Throwable
message - 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 Throwable
message - the message passed to the Exception constructor
detail - a more detailed description of the error
Method Detail

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