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.
| Modifier and Type | Method and Description |
|---|---|
void |
handleActionException(java.lang.Exception e,
RuleInstance ruleInstance)
Called when an exception is thrown during
RuleAction execution. |
void |
handleConditionException(java.lang.Exception e)
Called when an exception is thrown during a condition
|
void handleConditionException(java.lang.Exception e)
throws java.lang.Exception
java.lang.Exception - when RuleEngine execution must be stopped by raising an
ExecutionException.e - The exception thrown in the condition.void handleActionException(java.lang.Exception e,
RuleInstance ruleInstance)
throws java.lang.Exception
RuleAction execution.java.lang.Exception - when RuleEngine execution must be stopped by raising an
ExecutionException.e - The exception thrown in an action.ruleInstance - The rule instance which action was being executed.© Copyright IBM Corp. 1987, 2017