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