org.jboss.weld.exceptions
Class DeploymentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.weld.exceptions.WeldException
                  extended by org.jboss.weld.exceptions.DeploymentException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InconsistentSpecializationException, NullableDependencyException, UnserializableDependencyException

public class DeploymentException
extends WeldException

Thrown if an deployment exception occurs.

Author:
Pete Muir
See Also:
Serialized Form

Constructor Summary
DeploymentException(E key, Object... args)
          Creates a new exception with the given localized message key and optional arguments for the message.
DeploymentException(E key, Throwable throwable, Object... args)
          Creates a new exception with the given localized message key, the cause for this exception and optional arguments for the message.
DeploymentException(List<Throwable> errors)
          Creates a new exception based on a list of throwables.
DeploymentException(Throwable throwable)
          Creates a new exception with the given cause.
 
Method Summary
 
Methods inherited from class org.jboss.weld.exceptions.WeldException
getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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(E key,
                           Object... args)
Creates a new exception with the given localized message key and optional arguments for the message.

Type Parameters:
E - The enumeration type for the message keys
Parameters:
key - The localized message to use
args - Optional arguments to insert into the message

DeploymentException

public DeploymentException(E key,
                           Throwable throwable,
                           Object... args)
Creates a new exception with the given localized message key, the cause for this exception and optional arguments for the message.

Type Parameters:
E - The enumeration type for the message keys
Parameters:
key - The localized message to use
throwable - The cause for this exception
args - Optional arguments to insert into the message

DeploymentException

public DeploymentException(Throwable throwable)
Creates a new exception with the given cause.

Parameters:
throwable - The cause of the exception

DeploymentException

public DeploymentException(List<Throwable> errors)
Creates a new exception based on a list of throwables. The throwables are not used as the cause, but the message from each throwable is included as the message for this exception.

Parameters:
errors - A list of throwables to use in the message


Copyright © 2013 Seam Framework. All Rights Reserved.