Exception handling in rules

Exceptions in rule conditions prevent rules from being fired. This default behavior stops rule processing so that you can interpret the cause and severity of the exception. You can alternatively handle exceptions by allowing the automatic processing of some exceptions, or by customizing a response to a specific exception.

Automatic exception handling in conditions and custom exception handler are two distinct features. If both features are activated together:
  • All exceptions in conditions that trigger the handleConditionException exception are caught and not seen by the CustomExceptionHandler
  • Exceptions in actions are not handled by the automatic exception handling feature (only in the case of a rule variable defined in the condition part, and reused in the action part), so these exceptions trigger the execution of handleActionException