public final class ExceptionMessage extends Message
Message
stating that an exception occured.
The Throwable
passed to the constructor of this class is used to
determine the message's format arguments. For chained exceptions, that is,
getCause()
returns a non-null
value, the root cause is used.
ASCENDING, DESCENDING
Constructor and Description |
---|
ExceptionMessage(Throwable throwable)
Creates a new
ExceptionMessage taking the Throwable to
report. |
public ExceptionMessage(Throwable throwable)
ExceptionMessage
taking the Throwable
to
report.throwable
- the Throwable
to report.NullPointerException
- if throwable
is null
.public Object[] getFormatArguments(Locale locale)
This method traverses up the chained hierarchy. The arguments returned are constructed using the root cause.
getFormatArguments
in class Message
Copyright © 2005-2012 jDTAUS. All Rights Reserved.