Package org.jboss.weld.exceptions
Class WeldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.weld.exceptions.WeldException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NullInstanceException
A general run-time exception used by the JSR-299 reference implementation Weld.
- Author:
- David Allen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWeldException(String message) Creates a new exception with the given localized message.WeldException(String message, Throwable throwable) Creates a new exception with the given localized message and the cause for this exception.WeldException(Throwable throwable) Creates a new exception with the given cause.WeldException(List<Throwable> errors) Creates a new exception based on a list of throwables. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WeldException
Creates a new exception with the given cause.- Parameters:
throwable- The cause of the exception
-
WeldException
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
-
WeldException
Creates a new exception with the given localized message.- Parameters:
message-
-
WeldException
Creates a new exception with the given localized message and the cause for this exception.- Parameters:
message-throwable-
-
-
Method Details
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
getMessage
- Overrides:
getMessagein classThrowable
-