|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.exceptions.WeldExceptionMessage
public class WeldExceptionMessage
The message for exceptions generated by Weld. Each exception contains one
message object which will handle the generation of the string message at the
time the message is needed. This includes localization of the message based
on the settings in the JVM where the Throwable.getMessage()
or Throwable.getLocalizedMessage() methods are invoked.
| Constructor Summary | |
|---|---|
WeldExceptionMessage(E key,
java.lang.Object... args)
Creates a new exception message based on an enumerated message key. |
|
WeldExceptionMessage(java.lang.String message)
Creates a new exception message initialized to a static message. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAsString()
Generates the localized message for the exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeldExceptionMessage(java.lang.String message)
Creates a new exception message initialized to a static message. Use this only for messages generated by third-party software, i.e., those which do not use enumerated message keys.
message - the static message
public WeldExceptionMessage(E key,
java.lang.Object... args)
Creates a new exception message based on an enumerated message key. This
message will not be localized until it is actually logged or other
software invokes the #getMessage() method.
E - the message key enumerationkey - the message key from the above enumerationargs - optional arguments for the message| Method Detail |
|---|
public java.lang.String getAsString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||