|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.weld.exceptions.WeldException
public class WeldException
A general run-time exception used by the JSR-299 reference implementation Weld.
Constructor Summary | |
---|---|
WeldException(E key,
Object... args)
Creates a new exception with the given localized message key and optional arguments for the message. |
|
WeldException(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. |
|
WeldException(List<Throwable> errors)
Creates a new exception based on a list of throwables. |
|
WeldException(Throwable throwable)
Creates a new exception with the given cause. |
Method Summary | |
---|---|
String |
getLocalizedMessage()
|
String |
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 |
---|
public WeldException(Throwable throwable)
throwable
- The cause of the exceptionpublic WeldException(E key, Object... args)
E
- The enumeration type for the message keyskey
- The localized message to useargs
- Optional arguments to insert into the messagepublic WeldException(E key, Throwable throwable, Object... args)
E
- The enumeration type for the message keyskey
- The localized message to usethrowable
- The cause for this exceptionargs
- Optional arguments to insert into the messagepublic WeldException(List<Throwable> errors)
errors
- A list of throwables to use in the messageMethod Detail |
---|
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String getMessage()
getMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |