Make QueryError
-> CassError
conversion more accurate
#133
Labels
bug
Something isn't working
rust-driver-missing
Functionality that Rust driver needs to implement first
Milestone
Problem
At the moment, the error conversion is much limited due to stringified errors in Rust driver.
The biggest offender in my opinion is:
which is totally inaccurate, because
SERVER_INVALID_QUERY
strictly corresponds toDbError::Invalid
. At the same time,QueryError::InvalidMessage
is abused so much by converting allParseError
s andFrameError
s to it.Solution
Once the errors refactor lands in the Rust driver, a complex review of existing error conversion should be done to make it more accurate. Or else users moving from cpp-driver to cpp-rust-driver will get much confused by error messages. After all, failure deserializing a row may be displayed at the moment as "server invalid query".
The text was updated successfully, but these errors were encountered: