adding setter for Exception class in rule