|
||||||||||
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
org.jboss.weld.exceptions.DefinitionException
public class DefinitionException
Thrown if the definition of a bean is incorrect
Constructor Summary | |
---|---|
DefinitionException(E key,
Object... args)
Creates a new exception with the given localized message key and optional arguments for the message. |
|
DefinitionException(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. |
|
DefinitionException(List<Throwable> errors)
Creates a new exception based on a list of throwables. |
|
DefinitionException(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 |
---|
public DefinitionException(E key, Object... args)
E
- The enumeration type for the message keyskey
- The localized message to useargs
- Optional arguments to insert into the messagepublic DefinitionException(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 DefinitionException(Throwable throwable)
throwable
- The cause of the exceptionpublic DefinitionException(List<Throwable> errors)
errors
- A list of throwables to use in the message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |