public class WeldExceptionStringMessage extends java.lang.Object implements java.io.Serializable, WeldExceptionMessage
| Constructor and Description |
|---|
WeldExceptionStringMessage(java.lang.String message)
Creates a new exception message initialized to a static message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAsString()
Generates the localized message for the exception.
|
public WeldExceptionStringMessage(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 messagepublic java.lang.String getAsString()
WeldExceptionMessagegetAsString in interface WeldExceptionMessageCopyright © 2014. All Rights Reserved.