CacheControl / CacheControl/json-rules-engine
Handle error thrown by fact
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 507
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to figure out what the Engine does it a Fact function throws an exception. As far as I can tell, there is no event handler for this and it doesn't return the error as the Fact value or anything like that. It also doesn't seem to be caught by either of the existing `success` or `failure` events. Is this supported in some way or does the entire `engine.run()` bomb out?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing engine.run() through Fact evaluation and the existing success and failure event paths. Determine the intended behavior when a Fact function throws, including whether the error should be propagated or emitted; done means the behavior is decided, implemented, and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100