Skip to content

Better names and higher granularity for errors #519

@wprzytula

Description

@wprzytula

Problem statement

There are quite a few places in driver's code where the errors' names and/or messages are inappropriate. Unjustified ProtocolError's usage is prevalent. We lack an error for faults triggered by user's logic, such as unwise custom RetryPolicy being used.

Proposed solution

Add more error variants (mainly for QueryError), fix the usaged to make names and messages appropriate. Stop abusing ProtocolError when no guilt is on received messages.

Metadata

Metadata

Assignees

Labels

API-breakingThis might introduce incompatible API changescpp-rust-driver-p0Functionality required by cpp-rust-driver

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions