public class WeldExceptionKeyMessage extends java.lang.Object implements WeldExceptionMessage, java.io.Serializable
Throwable.getMessage() or
Throwable.getLocalizedMessage() methods are invoked on a
Weld exception.| Constructor and Description |
|---|
WeldExceptionKeyMessage(E key,
java.lang.Object... args)
Creates a new exception message based on an enumerated message key.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAsString()
Generates the localized message for the exception.
|
public WeldExceptionKeyMessage(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 messagepublic java.lang.String getAsString()
WeldExceptionMessagegetAsString in interface WeldExceptionMessageCopyright © 2014 Seam Framework. All Rights Reserved.