com.evelopers.unimod.adapter.servlet.provider
Class ExceptionEventProvider
java.lang.Object
com.evelopers.unimod.adapter.servlet.provider.ExceptionEventProvider
- All Implemented Interfaces:
- com.evelopers.unimod.runtime.EventProvider, com.evelopers.unimod.runtime.ExceptionHandler
- public class ExceptionEventProvider
- extends java.lang.Object
- implements com.evelopers.unimod.runtime.EventProvider, com.evelopers.unimod.runtime.ExceptionHandler
This event provider starts to listen to StateMachineEngine's exceptions
on init(com.evelopers.unimod.runtime.ModelEngine), hooks every exception, wraps it with parameter and
sends it as an event to ModelEngine.
|
Field Summary |
static java.lang.String |
E102
|
static java.lang.String |
EXCEPTION
|
|
Method Summary |
void |
dispose()
|
void |
handleException(com.evelopers.unimod.runtime.context.StateMachineContext context,
com.evelopers.common.exception.SystemException e)
|
void |
init(com.evelopers.unimod.runtime.ModelEngine engine)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
E102
public static final java.lang.String E102
- See Also:
- Constant Field Values
EXCEPTION
public static final java.lang.String EXCEPTION
- See Also:
- Constant Field Values
ExceptionEventProvider
public ExceptionEventProvider()
init
public void init(com.evelopers.unimod.runtime.ModelEngine engine)
- Specified by:
init in interface com.evelopers.unimod.runtime.EventProvider
dispose
public void dispose()
- Specified by:
dispose in interface com.evelopers.unimod.runtime.EventProvider
handleException
public void handleException(com.evelopers.unimod.runtime.context.StateMachineContext context,
com.evelopers.common.exception.SystemException e)
- Specified by:
handleException in interface com.evelopers.unimod.runtime.ExceptionHandler