Module couchdb3.exceptions

Classes

class AuthenticationMethodError (*args, **kwargs)
Expand source code
class AuthenticationMethodError(CouchDBError):
    """Authentication method is not allowed."""

Authentication method is not allowed.

Ancestors

class BadRequestError (*args, **kwargs)
Expand source code
class BadRequestError(CouchDBError):
    """Bad request structure. The error can indicate an error with the request URL, path or headers. Differences in the
    supplied MD5 hash and content also trigger this error, as this may indicate message corruption."""

Bad request structure. The error can indicate an error with the request URL, path or headers. Differences in the supplied MD5 hash and content also trigger this error, as this may indicate message corruption.

Ancestors

class ConflictError (*args, **kwargs)
Expand source code
class ConflictError(CouchDBError):
    """Request resulted in an update conflict."""

Request resulted in an update conflict.

Ancestors

class CouchDBError (*args, **kwargs)
Expand source code
class CouchDBError(Exception):
    """CouchDB Error"""

CouchDB Error

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class ExpectationFailedError (*args, **kwargs)
Expand source code
class ExpectationFailedError(CouchDBError):
    """When sending documents in bulk, the bulk load operation failed."""

When sending documents in bulk, the bulk load operation failed.

Ancestors

class ForbiddenError (*args, **kwargs)
Expand source code
class ForbiddenError(CouchDBError):
    """The requested item or operation is forbidden."""

The requested item or operation is forbidden.

Ancestors

class InternalServerError (*args, **kwargs)
Expand source code
class InternalServerError(CouchDBError):
    """The request was invalid, either because the supplied JSON was invalid, or invalid information was supplied as
    part of the request."""

The request was invalid, either because the supplied JSON was invalid, or invalid information was supplied as part of the request.

Ancestors

class MethodNotAllowedError (*args, **kwargs)
Expand source code
class MethodNotAllowedError(CouchDBError):
    """A request was made using an invalid HTTP request type for the URL requested. For example, you have requested a
    `PUT` when a `POST` is required. Errors of this type can also triggered by invalid URL strings."""

A request was made using an invalid HTTP request type for the URL requested. For example, you have requested a PUT when a POST is required. Errors of this type can also triggered by invalid URL strings.

Ancestors

class NameComplianceError (*args, **kwargs)
Expand source code
class NameComplianceError(CouchDBError):
    """Database name does not comply with the CouchDB requirements. For more information please refer to [the official
    documentation](https://docs.couchdb.org/en/main/api/database/common.html#put--db)."""

Database name does not comply with the CouchDB requirements. For more information please refer to the official documentation.

Ancestors

class NotAcceptableError (*args, **kwargs)
Expand source code
class NotAcceptableError(CouchDBError):
    """The requested content type is not supported by the server."""

The requested content type is not supported by the server.

Ancestors

class NotFoundError (*args, **kwargs)
Expand source code
class NotFoundError(CouchDBError):
    """The requested content could not be found. The content will include further information, as a JSON object, if
    available. The structure will contain two keys, `error` and `reason`. For example:
    ```
    {"error":"not_found","reason":"no_db_file"}
    ```
    """

The requested content could not be found. The content will include further information, as a JSON object, if available. The structure will contain two keys, error and reason. For example:

{"error":"not_found","reason":"no_db_file"}

Ancestors

class PreconditionFailedError (*args, **kwargs)
Expand source code
class PreconditionFailedError(CouchDBError):
    """The request headers from the client and the capabilities of the server do not match."""

The request headers from the client and the capabilities of the server do not match.

Ancestors

class ProxySchemeComplianceError (*args, **kwargs)
Expand source code
class ProxySchemeComplianceError(CouchDBError):
    """Proxy scheme does not comply with the CouchDB requirements. For more information please refer to [the official
    documentation](https://docs.couchdb.org/en/main/api/server/common.html#replicate)"""

Proxy scheme does not comply with the CouchDB requirements. For more information please refer to the official documentation

Ancestors

class RequestEntityTooLargeError (*args, **kwargs)
Expand source code
class RequestEntityTooLargeError(CouchDBError):
    """A document exceeds the configured `couchdb3/max_document_size` value or the entire request exceeds the
    `chttpd/max_http_request_size` value"""

A document exceeds the configured couchdb3/max_document_size value or the entire request exceeds the chttpd/max_http_request_size value

Ancestors

class RequestRangeNotSatisfiableError (*args, **kwargs)
Expand source code
class RequestRangeNotSatisfiableError(CouchDBError):
    """The range specified in the request header cannot be satisfied by the server."""

The range specified in the request header cannot be satisfied by the server.

Ancestors

class UnauthorizedError (*args, **kwargs)
Expand source code
class UnauthorizedError(CouchDBError):
    """The item requested was not available using the supplied authorization, or authorization was not supplied."""

The item requested was not available using the supplied authorization, or authorization was not supplied.

Ancestors

class UnsupportedMediaTypeError (*args, **kwargs)
Expand source code
class UnsupportedMediaTypeError(CouchDBError):
    """Content type error."""

Content type error.

Ancestors

class UserIDComplianceError (*args, **kwargs)
Expand source code
class UserIDComplianceError(CouchDBError):
    """User ID does not comply with the CouchDB requirements. For more information please refer to [the official
    documentation](https://docs.couchdb.org/en/main/intro/security.html#org-couchdb-user)"""

User ID does not comply with the CouchDB requirements. For more information please refer to the official documentation

Ancestors