|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.virtuosotechnologies.lib.error.SimpleUserMessageGenerator
Simple implementation of UserMessageGenerator.
The template accepts the following parameters:
This class is fully synchronized and thread-safe.
| Method Summary | |
static SimpleUserMessageGenerator |
create(Class cls,
String messageString)
Pseudo-Constructor |
static SimpleUserMessageGenerator |
createWithType(Class cls,
String messageString)
Pseudo-Constructor |
String |
format(Throwable ex,
PropertySet properties,
ExceptionFormatter formatter)
Generate a String representation of the given exception. |
String |
getMessageString()
Get the message string |
Class |
getUnderstoodClass()
Get the class that this generator understands |
void |
setExceptionTemplate(String template)
Set the template for exceptions |
void |
setMessageString(String messageString)
Set the message string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SimpleUserMessageGenerator create(Class cls,
String messageString)
cls - Class that this generator recognizes.messageString - message string for this exception.
public static SimpleUserMessageGenerator createWithType(Class cls,
String messageString)
cls - Class that this generator recognizes.messageString - message string for this exception.public void setExceptionTemplate(String template)
template - new template Stringpublic String getMessageString()
public void setMessageString(String messageString)
messageString - new message String
public String format(Throwable ex,
PropertySet properties,
ExceptionFormatter formatter)
format in interface UserMessageGeneratorex - throwableproperties - formatter-specific properties.formatter - the ExceptionFormatter that called this method
public Class getUnderstoodClass()
getUnderstoodClass in interface UserMessageGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||