org.objectweb.jonas_lib.deployment
Class DeploymentDescException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.objectweb.jonas_lib.deployment.DeploymentDescException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EarDeploymentDescException, RarDeploymentDescException, WebContainerDeploymentDescException

public class DeploymentDescException
extends java.lang.Exception

The DeploymentDesc exception uses the pattern defined by the Enhydra com.lutris.util.ChainedException The source has been temporary duplicated to prevent Jonas using from external dependencies.

Author:
Christophe Ney
See Also:
Serialized Form

Constructor Summary
DeploymentDescException()
          Construct an exception without anything
DeploymentDescException(java.lang.String msg)
          Construct an exception without a specified cause.
DeploymentDescException(java.lang.String msg, java.lang.Throwable cause)
          Construct an exception with an associated causing exception.
DeploymentDescException(java.lang.Throwable cause)
          Construct an exception from a causing exception.
 
Method Summary
 java.lang.Throwable getCause()
          Get the causing exception associated with this exception.
 java.lang.String getMessage()
          Return the message associated with this exception.
 void printStackTrace()
          Prints this DeploymentDescException and its backtrace, and the causes and their stack traces to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this DeploymentDescException and its backtrace, and the causes and their stack traces to the e specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this DeploymentDescException and its backtrace, and the causes and their stack traces to the e specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeploymentDescException

public DeploymentDescException()
Construct an exception without anything

DeploymentDescException

public DeploymentDescException(java.lang.String msg)
Construct an exception without a specified cause.
Parameters:
msg - The message associated with the exception.

DeploymentDescException

public DeploymentDescException(java.lang.String msg,
                               java.lang.Throwable cause)
Construct an exception with an associated causing exception.
Parameters:
msg - The message associated with the exception.
cause - The error or exception that cause this exception.

DeploymentDescException

public DeploymentDescException(java.lang.Throwable cause)
Construct an exception from a causing exception.
Parameters:
cause - The error or exception that cause this exception. The message will be take be this object's messasge.
Method Detail

getMessage

public java.lang.String getMessage()
Return the message associated with this exception. If causes are included, they will be appended to the message.
Overrides:
getMessage in class java.lang.Throwable

getCause

public java.lang.Throwable getCause()
Get the causing exception associated with this exception.
Returns:
The causing exception or null if no cause is specified.

printStackTrace

public void printStackTrace()
Prints this DeploymentDescException and its backtrace, and the causes and their stack traces to the standard error stream.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this DeploymentDescException and its backtrace, and the causes and their stack traces to the e specified print stream.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this DeploymentDescException and its backtrace, and the causes and their stack traces to the e specified print writer.
Overrides:
printStackTrace in class java.lang.Throwable