org.jboss.deployment
Class DeploymentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jboss.util.NestedException (src) 
              extended byorg.jboss.deployment.DeploymentException
All Implemented Interfaces:
NestedThrowable (src) , java.io.Serializable
Direct Known Subclasses:
IncompleteDeploymentException (src)

public class DeploymentException
extends NestedException (src)

Thrown by a deployer if an application component could not be deployed.

See Also:
DeployerMBean, Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jboss.util.NestedThrowable (src)
NestedThrowable.Util (src)
 
Field Summary
 
Fields inherited from class org.jboss.util.NestedException (src)
nested
 
Fields inherited from interface org.jboss.util.NestedThrowable (src)
DETECT_DUPLICATE_NESTING, NESTED_TRACE_ENABLED, PARENT_TRACE_ENABLED
 
Constructor Summary
DeploymentException()
          Construct a DeploymentException with no detail.
DeploymentException(java.lang.String msg)
          Construct a DeploymentException with the specified detail message.
DeploymentException(java.lang.String msg, java.lang.Throwable nested)
          Construct a DeploymentException with the specified detail message and nested Throwable.
DeploymentException(java.lang.Throwable nested)
          Construct a DeploymentException with the specified nested Throwable.
 
Method Summary
static void rethrowAsDeploymentException(java.lang.String message, java.lang.Throwable t)
          Rethrow a throwable as a deployment exception if it isn't already.
 
Methods inherited from class org.jboss.util.NestedException (src)
getCause, getMessage, getNested, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeploymentException

public DeploymentException(java.lang.String msg)
Construct a DeploymentException with the specified detail message.

Parameters:
msg - Detail message.

DeploymentException

public DeploymentException(java.lang.String msg,
                           java.lang.Throwable nested)
Construct a DeploymentException with the specified detail message and nested Throwable.

Parameters:
msg - Detail message.
nested - Nested Throwable.

DeploymentException

public DeploymentException(java.lang.Throwable nested)
Construct a DeploymentException with the specified nested Throwable.

Parameters:
nested - Nested Throwable.

DeploymentException

public DeploymentException()
Construct a DeploymentException with no detail.

Method Detail

rethrowAsDeploymentException

public static void rethrowAsDeploymentException(java.lang.String message,
                                                java.lang.Throwable t)
                                         throws DeploymentException (src) 
Rethrow a throwable as a deployment exception if it isn't already.

Parameters:
message - the message
t - the throwable
Throws:
a - DeploymentException
DeploymentException (src)