Closed justinabrahms closed 7 months ago
We might want to update this point not to be prescriptive of the actual error codes
, to be consistent with: https://github.com/open-feature/spec/blob/main/specification/flag-evaluation/flag-evaluation.md#requirement-147
It sounds like the thing is saying "If things go bad, you can throw exceptions, but the exceptions must also somehow communicate a string code which the framework will pick up". Is that the expectation?
Yes, that was the idea
I think this will mean that we will have some custom exceptions that providers can throw with an error code.. but we also can handle any sort of exception.
Yep!
I'm up for any proposals to make this point clearer.
On an unrelated note... to reduce thrashing, we might want to break up the provider spec into sub-sections as we have others... that way if we add an intervening point later, it won't cause so many changes.
So I'm writing a test case for 2.8. I'm not entirely clear exactly what we're trying to accomplish with it.
So, ProviderEvaluation already has a mechanism for providing an error status. It sounds like the thing is saying "If things go bad, you can throw exceptions, but the exceptions must also somehow communicate a string code which the framework will pick up". Is that the expectation? I think this will mean that we will have some custom exceptions that providers can throw with an error code.. but we also can handle any sort of exception.