php-rql
php-rql copied to clipboard
Specific error codes for Exception messages
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.