org.jboss.deployment
Class DeploymentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jboss.util.NestedException
              extended by org.jboss.deployment.DeploymentException
All Implemented Interfaces:
Serializable, org.jboss.util.NestedThrowable
Direct Known Subclasses:
IncompleteDeploymentException

public class DeploymentException
extends org.jboss.util.NestedException

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

Version:
$Revision: 1.2.6.2 $
Author:
Toby Allsopp
See Also:
DeployerMBean, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.util.NestedThrowable
org.jboss.util.NestedThrowable.Util
 
Field Summary
 
Fields inherited from class org.jboss.util.NestedException
nested
 
Fields inherited from interface org.jboss.util.NestedThrowable
DETECT_DUPLICATE_NESTING, NESTED_TRACE_ENABLED, PARENT_TRACE_ENABLED
 
Constructor Summary
DeploymentException()
          Construct a DeploymentException with no detail.
DeploymentException(String msg)
          Construct a DeploymentException with the specified detail message.
DeploymentException(String msg, Throwable nested)
          Construct a DeploymentException with the specified detail message and nested Throwable.
DeploymentException(Throwable nested)
          Construct a DeploymentException with the specified nested Throwable.
 
Method Summary
static void rethrowAsDeploymentException(String message, Throwable t)
          Rethrow a throwable as a deployment exception if it isn't already.
 
Methods inherited from class org.jboss.util.NestedException
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(String msg)
Construct a DeploymentException with the specified detail message.

Parameters:
msg - Detail message.

DeploymentException

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

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

DeploymentException

public DeploymentException(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(String message,
                                                Throwable t)
                                         throws DeploymentException
Rethrow a throwable as a deployment exception if it isn't already.

Parameters:
message - the message
t - the throwable
Throws:
a - DeploymentException
DeploymentException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.