This PR proposed moving the existing exceptionCollector function to be a class, we're already kind of mimicking this by returning an object with the functions attached but by moving to a class it means we can more easily type the collector we pass around and when refactoring we're able to get typing.
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected
Description
This PR proposed moving the existing
exceptionCollector
function to be a class, we're already kind of mimicking this by returning an object with the functions attached but by moving to a class it means we can more easily type thecollector
we pass around and when refactoring we're able to get typing.References
Review Checklist
main