org.zkoss.zest.sys
Interface ErrorHandler

All Known Implementing Classes:
ErrorHandlerImpl

public interface ErrorHandler

The error handler for handling exceptions thrown when processing a request.

Author:
tomyeh

Method Summary
 void onError(ActionContext ac, java.lang.Object action, java.lang.Throwable ex)
          Called when an exception is thrown.
 void onParamError(ActionContext ac, java.lang.Object action, java.lang.String name, java.lang.String value, java.lang.Throwable ex)
          Called when an exception is thrown when coercing a request parameter to be stored in an action.
 

Method Detail

onError

void onError(ActionContext ac,
             java.lang.Object action,
             java.lang.Throwable ex)
             throws java.lang.Throwable
Called when an exception is thrown. If the error handler cannot handle it, it has to re-throw the exception.

Throws:
java.lang.Throwable

onParamError

void onParamError(ActionContext ac,
                  java.lang.Object action,
                  java.lang.String name,
                  java.lang.String value,
                  java.lang.Throwable ex)
                  throws java.lang.Throwable
Called when an exception is thrown when coercing a request parameter to be stored in an action. If the error handler cannot handle it, it has to re-throw the exception.

Parameters:
name - the parameter's name
value - the parameter's value
ex - the exception being caught
Throws:
java.lang.Throwable


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.