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