If you test the above exception handler, you will find that the name of the rule set is not identified in the e-mail message. In the following example, you will find it easy to tell which rule failed because you only have one rule set and a couple of rules. In a production environment you may have many rule sets, each containing many rules, making it difficult to tell in which rule set the error occurred. To help identify the rule set, a rule set variable that contains the name of the rule set, can be created. The value of variable can then be included in the exception e-mail message.
%#Rule Set Name%
. So the new subject would be:An exception was thrown by the action %triggerEvent.RuleName% in rule set %#Rule Set Name% while processing %triggerEvent.Action.Pages.Name%
Error: %triggerEvent.Message%