|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.virtuosotechnologies.lib.error.SimpleExceptionFormatter
Simple exception formatter.
The templates are of MessageFormat pattern type, where parameter 0 is replaced by the toString() form of the exception.
This class is fully synchronized and thread-safe.
| Constructor Summary | |
SimpleExceptionFormatter()
Construct a formatter using the default templates |
|
| Method Summary | |
String |
format(Throwable ex,
PropertySet properties)
Generate a String representation of the given exception. |
void |
setFirstTemplate(String template)
Set the template for first exception |
void |
setNextTemplate(String template)
Set the template for next exception |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleExceptionFormatter()
| Method Detail |
public void setFirstTemplate(String template)
template - new template Stringpublic void setNextTemplate(String template)
template - new template String
public String format(Throwable ex,
PropertySet properties)
format in interface ExceptionFormatterex - throwableproperties - formatter-specific properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||