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

Specific error codes for Exception messages #133

Open
edgaraafelix opened this issue Jul 14, 2016 · 0 comments
Open

Specific error codes for Exception messages #133

edgaraafelix opened this issue Jul 14, 2016 · 0 comments

Comments

@edgaraafelix
Copy link

edgaraafelix commented Jul 14, 2016

Is it possible to add specific error codes for RqlException, RqlServerError or RqlDriverError?

In some cases, this would make error checking much easier.

E.g.:

throw new RqlDriverError("Failed to encode document as JSON: " . json_last_error(), 001)

Note that the code 001 is only an example.

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