org.jboss.deployment
Class DeploymentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jboss.deployers.spi.DeploymentException
              extended by org.jboss.deployment.DeploymentException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IncompleteDeploymentException

Deprecated. use org.jboss.deployers.spi.DeploymentException

public class DeploymentException
extends org.jboss.deployers.spi.DeploymentException

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

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

Constructor Summary
DeploymentException()
          Deprecated. Construct a DeploymentException with no detail.
DeploymentException(String msg)
          Deprecated. Construct a DeploymentException with the specified detail message.
DeploymentException(String msg, Throwable nested)
          Deprecated. Construct a DeploymentException with the specified detail message and nested Throwable.
DeploymentException(Throwable nested)
          Deprecated. Construct a DeploymentException with the specified nested Throwable.
 
Method Summary
static DeploymentException rethrowAsDeploymentException(String message, Throwable t)
          Deprecated. Rethrow a throwable as a deployment exception if it isn't already.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, 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)
Deprecated. 
Construct a DeploymentException with the specified detail message.

Parameters:
msg - Detail message.

DeploymentException

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

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

DeploymentException

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

Parameters:
nested - Nested Throwable.

DeploymentException

public DeploymentException()
Deprecated. 
Construct a DeploymentException with no detail.

Method Detail

rethrowAsDeploymentException

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

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.