com.virtuosotechnologies.lib.error
Interface UserMessageGenerator

All Known Implementing Classes:
DefaultUserMessageGenerator, SimpleUserMessageGenerator

public interface UserMessageGenerator

Interface for generators of user messages for specific exception types.


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
 

Method Detail

format

public String format(Throwable ex,
                     PropertySet properties,
                     ExceptionFormatter formatter)
Generate a String representation of the given exception.

Parameters:
ex - throwable
properties - formatter-specific properties.
formatter - the ExceptionFormatter that called this method
Returns:
a formatted String.

getUnderstoodClass

public Class getUnderstoodClass()
Get the class that this generator understands

Returns:
a Class object.