org.loom.interceptor
Class MethodInterceptor.OnError

java.lang.Object
  extended by org.loom.interceptor.MethodInterceptor
      extended by org.loom.interceptor.MethodInterceptor.OnError
All Implemented Interfaces:
ErrorListener, Interceptor
Enclosing class:
MethodInterceptor

public static class MethodInterceptor.OnError
extends MethodInterceptor
implements ErrorListener


Nested Class Summary
 
Nested classes/interfaces inherited from class org.loom.interceptor.MethodInterceptor
MethodInterceptor.AfterCreate, MethodInterceptor.BeforeExecute, MethodInterceptor.BeforePopulate, MethodInterceptor.BeforeValidate, MethodInterceptor.DoFinally, MethodInterceptor.OnError
 
Constructor Summary
MethodInterceptor.OnError()
           
 
Method Summary
 Resolution onError(ParsedAction action)
           
 
Methods inherited from class org.loom.interceptor.MethodInterceptor
getInstance, invoke, setMethod, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodInterceptor.OnError

public MethodInterceptor.OnError()
Method Detail

onError

public Resolution onError(ParsedAction action)
Specified by:
onError in interface ErrorListener
Parameters:
action - the action and event that were being executed
Returns:
if return value != null, stops the execution of the workflow and return the provided resolution