|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.virtuosotechnologies.lib.error.DefaultUserMessageGenerator
Default implementation of UserMessageGenerator.
The template accepts the following parameters:
This class is fully synchronized and thread-safe.
| Constructor Summary | |
DefaultUserMessageGenerator(Class cls)
Constructor. |
|
DefaultUserMessageGenerator(Class cls,
String template)
Constructor |
|
| Method Summary | |
String |
format(Throwable ex,
PropertySet properties,
ExceptionFormatter formatter)
Generate a String representation of the given exception. |
Class |
getUnderstoodClass()
Get the class that this generator understands |
void |
setExceptionTemplate(String template)
Set the template for exceptions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultUserMessageGenerator(Class cls)
cls - Class that this generator recognizes.
public DefaultUserMessageGenerator(Class cls,
String template)
cls - Class that this generator recognizes.template - template string.| Method Detail |
public void setExceptionTemplate(String template)
template - new template 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 | |||||||||