php-rql icon indicating copy to clipboard operation
php-rql copied to clipboard

Specific error codes for Exception messages

Open edgaraafelix opened this issue 8 years ago • 0 comments

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.

edgaraafelix avatar Jul 14 '16 14:07 edgaraafelix