hyperjumptech / grule-rule-engine

Rule engine implementation in Golang
Other
2.16k stars 338 forks source link

ExecuteWithContext error should return rule name #403

Open kilgaloon opened 1 year ago

kilgaloon commented 1 year ago

Is your feature request related to a problem? Please describe. Yes. If there is a lot of rules to be evaluated returning plain error without where the error happened doesn't means much since you need to find manually in which rule it happened.

Describe the solution you'd like I want that ExecuteWithContext return error not only describing what happened in then but also what is the name of the rule error happened in.

Describe alternatives you've considered I considered using listener, but it seems that listener EvaluateRuleEntry doesn't trigger when error happens.