scylladb-zpp-2024-javascript-driver / scylladb-javascript-driver

Apache License 2.0
6 stars 0 forks source link

Proper error throwing #88

Open adespawn opened 1 week ago

adespawn commented 1 week ago

Currently NAPI allows to throw only few types of errors, but it's required that specific errors should be thrown in many places

ex. https://github.com/scylladb-zpp-2024-javascript-driver/scylladb-javascript-driver/blob/bad25f7a837a434efa6aa3a0c50157c18e62ce46/test/integration/not-supported/client-execute-tests.js#L100-L114

Add support for using custom errors from rust part of the driver

PiotrJunior commented 6 days ago

https://github.com/scylladb-zpp-2024-javascript-driver/scylladb-javascript-driver/pull/39#discussion_r1847382662