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:
  • Exceptions in conditions that are managed by automatic exception handling are caught and not seen by the CustomExceptionHandler.
  • An exceptions in the action part of a rule always triggers the handleActionException method in CustomExceptionHandler.