Exception classes - how to instantiate?

Hi @gnarlium,
I’ll try to dig up some more detailed info on errors. As a wrapper for libcouchbase, Python Couchbase Client’s exceptions wrap the standard error codes returned from the server. There is now a system for retrieving a description of each error code from the server using KV Error Map - this is accessible from Python via a connection string setting, as far as I am aware.

Please look here for an up-to-date account:

With respect to raising CouchbaseErrors as an end-user, this is not something that we cater for normally, as they are intended to be emitted by the SDK only. Do you need these for tests? I guess you can map the exceptions you are expecting to handle to something else for that purpose.

Thanks,
Ellis