Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throw better exceptions #12

Open
yoannisj opened this issue Oct 26, 2022 · 0 comments
Open

throw better exceptions #12

yoannisj opened this issue Oct 26, 2022 · 0 comments

Comments

@yoannisj
Copy link

Currently API error codes are included as string at the end of the \Coconut\Error::message property. It would be more convenient to add an api_error_code property on the exception class, so it can easily be inspected to the php code using this library and each error can be handled differently if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant