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.
|
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()
WeldExceptionMessage
getAsString
in interface WeldExceptionMessage
Copyright © 2013 Seam Framework. All Rights Reserved.