|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.core.DefaultCodeMessageFormatter
public class DefaultCodeMessageFormatter
Default implementation to format code messages.
Constructor Summary | |
---|---|
DefaultCodeMessageFormatter() Default constructor. |
Method Summary | |
---|---|
String |
format(CoreException exception) Formats the given core exception. |
String |
format(CoreException exception, Object message) Formats the given core exception. |
protected String |
toString(CoreException exception) Standard implementation of formatting ID, code and time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCodeMessageFormatter()
Method Detail |
---|
public final String format(CoreException exception)
CodeMessageFormatter
Implementations must not use the toString
method of the given exception
since the instance delegates its toString
method call to this instance.
format
in interface
CodeMessageFormatter
exception
- the exception to transform to its string representation.
public final String format(CoreException exception, Object message)
CodeMessageFormatter
Implementations must not use the toString
method of the given exception
since the instance delegates its toString
method call to this instance.
format
in interface
CodeMessageFormatter
exception
- the exception to transform to its string representation.
message
- to message to include into the representation.
protected final String toString(CoreException exception)
exception
- the exception to format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |