|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExceptionHandler
An interface defining the method that will be called when a validation/service or other area of functionality fails. The interface can be implemented by any class and in this way error reporting or logging can be redirected to a variety of destinations.
Copyright: Copyright (c) Formaria Ltd., 2008
License: see license.txt
| Method Summary | |
|---|---|
int |
accumulateMessages(boolean accumulate,
int level)
informs the handler when page checking is starting or stopping. |
boolean |
handleEventHandlerException(Project project,
java.lang.Object container,
java.lang.Throwable error)
Handle an exception during the invocation of a page's event handler. |
boolean |
handleException(java.lang.Object c,
java.lang.Exception ex,
java.lang.Object checker)
A method called when an exeption has been trapped. |
| Method Detail |
|---|
boolean handleException(java.lang.Object c,
java.lang.Exception ex,
java.lang.Object checker)
c - Component being validatedex - The exception causedchecker - The object being used to check validity and throw exceptions.
int accumulateMessages(boolean accumulate,
int level)
accumulate - boolean to indicate whether the accumulation is started or stopped.level - int which indicates the most serious level of error encountered
boolean handleEventHandlerException(Project project,
java.lang.Object container,
java.lang.Throwable error)
project - the current projectcontainer - the pageerror - the exception or error that was thrown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||