Errors

AnalyticsError

class couchbase_analytics.errors.AnalyticsError(cause: BaseException | Exception | None = None, message: str | None = None, context: str | None = None)

Generic base error. Analytics specific errors inherit from this base error.

InvalidCredentialError

class couchbase_analytics.errors.InvalidCredentialError(cause: BaseException | Exception | None = None, context: str | None = None, message: str | None = None)

Indicates that an error occurred authenticating the user to the cluster.

QueryError

class couchbase_analytics.errors.QueryError(code: int, server_message: str, context: str, message: str | None = None)

Indicates that an query request received an error from the Analytics server.

property code: int

Returns: Error code from Analytics server

property server_message: str

Returns: Error message from Analytics server

TimeoutError

class couchbase_analytics.errors.TimeoutError(cause: BaseException | Exception | None = None, context: str | None = None, message: str | None = None)

Indicates that a request was unable to complete prior to reaching the deadline specified for the reqest.

InternalSDKError

class couchbase_analytics.errors.InternalSDKError(cause: BaseException | Exception | None = None, context: str | None = None, message: str | None = None)

This means the SDK has done something wrong. Get support. (this doesn’t mean you didn’t do anything wrong, it does mean you should not be seeing this message)