org.jboss.weld.exceptions
Class WeldExceptionStringMessage
java.lang.Object
org.jboss.weld.exceptions.WeldExceptionStringMessage
- All Implemented Interfaces:
- Serializable, WeldExceptionMessage
public class WeldExceptionStringMessage
- extends Object
- implements Serializable, WeldExceptionMessage
Simple message object that just contains a String already formatted
and localized.
- Author:
- David Allen
- See Also:
- Serialized Form
Method Summary |
String |
getAsString()
Generates the localized message for the exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeldExceptionStringMessage
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.
- Parameters:
message
- the static message
getAsString
public String getAsString()
- Description copied from interface:
WeldExceptionMessage
- Generates the localized message for the exception.
- Specified by:
getAsString
in interface WeldExceptionMessage
- Returns:
- exception message as a string
Copyright © 2013 Seam Framework. All Rights Reserved.