| org.jasig.portal.lang.ThrowableHandler
ThrowableHandler | public interface ThrowableHandler (Code) | | The ThrowableHandler interface defines the error
management mechanism for handler implementations. Error management
implementations may process the reported error in any way necessary
but the implementations should not throw any exceptions from this
method. By definition, invocation of the handle method
means that the error condition is handled by the
implementation.
If an error condition should be wrapped and a new exception thrown,
the calling code should not use the
ThrowableHelper.handle methods to "handle" the
error. Instead, the code should create the new error object with
the triggering error object captured as its "cause"; see the
ThrowableHelper for details.
author: Jan Nielsen version: "$Revision: 34760 $" |
handle | void handle(Class client, String property, String[] objects, Throwable cause)(Code) | | Handles the error condition specified in the parameters. The
handler can use the client class to resolve the error message
property name, and generate a localized message from the
optional objects. Implementations should not throw any errors
from this method, except NullPointerException if
the client or error message property name is null .
Parameters: client - client calling the handle method Parameters: property - property name associated with error message Parameters: objects - objects associated with the error message, ornull Parameters: cause - throwable condition which caused the error, ornull throws: NullPointerException - if client or property isnull |
|
|