Error handling
When using the drivers with a DataStax Enterprise or Apache Cassandra™ cluster, various errors and exceptions may be encountered. The correct way to handle these error conditions often depends on the requirements of the application utilizing the driver. In this section, types of errors are covered as well as causes and common remediation of each.
At the broadest level, there are two types of errors:
-
Server-originated errors: Server errors are returned directly from the coordinator to the driver and are identical across all of the drivers.
-
Client-side errors: Client-side errors are specific to issues that occur in the driver itself and vary from driver to driver.
For specifics, refer to the individual driver error documentation.