org.jboss.deployers.spi
Class DeploymentException

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

public class DeploymentException
extends Exception

DeploymentException.

Version:
$Revision: 1.1 $
Author:
Dimitris Andreadis, Adrian Brock
See Also:
Serialized Form

Constructor Summary
DeploymentException()
          Constructs a DeploymentException with null as its error detail message.
DeploymentException(String s)
          Constructs a DeploymentException with the specified detail message.
DeploymentException(String s, Throwable cause)
          Constructs a DeploymentException with the specified detail message and cause.
DeploymentException(Throwable cause)
          Constructs a DeploymentException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 
Method Summary
static DeploymentException rethrowAsDeploymentException(String message, Throwable t)
          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()
Constructs a DeploymentException with null as its error detail message.


DeploymentException

public DeploymentException(String s)
Constructs a DeploymentException with the specified detail message. The error message string s can later be retrieved by the Throwable.getMessage() method of class java.lang.Throwable.

Parameters:
s - the message

DeploymentException

public DeploymentException(String s,
                           Throwable cause)
Constructs a DeploymentException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
s - the message
cause - the underlying cause

DeploymentException

public DeploymentException(Throwable cause)
Constructs a DeploymentException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example, PrivilegedActionException).

Parameters:
cause - the underlying cause
Method Detail

rethrowAsDeploymentException

public static DeploymentException 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
Returns:
never
Throws:
DeploymentException - always


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