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 Details

    • handleConditionException

      void handleConditionException(Exception e) throws Exception
      Called when an exception is thrown during a condition
      Parameters:
      e - The exception thrown in the condition.
      Throws:
      Exception - when RuleEngine execution must be stopped by raising an ExecutionException.
    • handleActionException

      void handleActionException(Exception e, RuleInstance ruleInstance) throws Exception
      Called when an exception is thrown during RuleAction execution.
      Parameters:
      e - The exception thrown in an action.
      ruleInstance - The rule instance which action was being executed.
      Throws:
      Exception - when RuleEngine execution must be stopped by raising an ExecutionException.