com.ibm.rules.engine.ruledef.runtime

Interface CustomExceptionHandler



  • 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

      Methods 
      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
    • Method Detail

      • handleConditionException

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

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

© Copyright IBM Corp. 1987, 2017