Interface CustomExceptionHandler
- All Known Subinterfaces:
CustomRuleflowExceptionHandler
public interface CustomExceptionHandler
CustomExceptionHandler is an interface to implement and to declare
to provide a custom exception handling.
The exceptions that are visible to this object are raised either during the
evaluation of a rule condition or during the execution of the rule body.
Depending on the location where the exception is raised, a specific
handler method is called by the Engine.
Note: this handler may re-raise an exception if the exception should not be hidden.
- Since:
- ODM 8.8.1
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleActionException(Exception e, RuleInstance ruleInstance) Called when an exception is thrown duringRuleActionexecution.voidCalled when an exception is thrown during a condition
-
Method Details
-
handleConditionException
Called when an exception is thrown during a condition- Parameters:
e- The exception thrown in the condition.- Throws:
Exception- whenRuleEngineexecution must be stopped by raising anExecutionException.
-
handleActionException
Called when an exception is thrown duringRuleActionexecution.- Parameters:
e- The exception thrown in an action.ruleInstance- The rule instance which action was being executed.- Throws:
Exception- whenRuleEngineexecution must be stopped by raising anExecutionException.
-