func (x *Exception) SetRule(rule string) error {
	ruleRegexp, err := regexp.Compile("(?i)" + rule)
	if err != nil {
		return err
	}
	x.Rule = ruleRegexp
	return nil
}
func (x *Exception) SetRule(rule string) error {
	ruleRegexp, err := regexp.Compile("(?i)" + rule)
	if err != nil {
		return err
	}
	x.Rule = ruleRegexp
	return nil
}
// SetRule sets the regular expresion that should match the name of the rule.