Package org.jboss.weld.exceptions
Class DeploymentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.enterprise.inject.spi.DeploymentException
-
- org.jboss.weld.exceptions.DeploymentException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InconsistentSpecializationException
,UnserializableDependencyException
public class DeploymentException extends jakarta.enterprise.inject.spi.DeploymentException
Thrown if an deployment exception occurs.- Author:
- Pete Muir, Jozef Hartinger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeploymentException(String message)
Creates a new exception with the given localized message.DeploymentException(String message, Throwable throwable)
Creates a new exception with the given localized message and the cause for this exception.DeploymentException(Throwable throwable)
Creates a new exception with the given cause.DeploymentException(List<? extends Throwable> errors)
Creates a new exception based on a list of throwables.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalizedMessage()
String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DeploymentException
public DeploymentException(Throwable throwable)
Creates a new exception with the given cause.- Parameters:
throwable
- The cause of the exception
-
DeploymentException
public DeploymentException(List<? extends 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
-
DeploymentException
public DeploymentException(String message)
Creates a new exception with the given localized message.- Parameters:
message
-
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classThrowable
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-