vastdb.errors

exception vastdb.errors.ApiResponseError[source]

Bases: Exception

Indicates a logically invalid or inconsistent server response.

exception vastdb.errors.BadRequest(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.Conflict(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.ConnectionError(cause: Exception, may_retry: bool)[source]

Bases: Exception

cause: Exception
may_retry: bool
exception vastdb.errors.Exists[source]

Bases: Exception

exception vastdb.errors.Forbidden(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.HttpError(code: str, message: str, method: str, url: str, status: int, headers: requests.structures.CaseInsensitiveDict)[source]

Bases: Exception

code: str
headers: CaseInsensitiveDict
message: str
method: str
status: int
url: str
class vastdb.errors.HttpStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

BAD_REQUEST = 400
CONFLICT = 409
FOBIDDEN = 403
INSUFFICIENT_CAPACITY = 507
INTERNAL_SERVER_ERROR = 500
METHOD_NOT_ALLOWED = 405
NOT_FOUND = 404
NOT_IMPLEMENTED = 501
REQUEST_TIMEOUT = 408
SERVICE_UNAVAILABLE = 503
SUCCESS = 200
exception vastdb.errors.ImportFilesError(message: str, error_dict: dict)[source]

Bases: Exception

error_dict: dict
message: str
exception vastdb.errors.InsufficientCapacity(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.InternalServerError(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.InvalidArgument[source]

Bases: Exception

exception vastdb.errors.MethodNotAllowed(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.Missing[source]

Bases: Exception

exception vastdb.errors.MissingBlobExpansion(table_ref: TableRef, source_column: str)[source]

Bases: Missing

Raised when a blob expansion is not found.

source_column: str
table_ref: TableRef
exception vastdb.errors.MissingBucket(bucket: str)[source]

Bases: Missing

bucket: str
exception vastdb.errors.MissingProjection(bucket: str, schema: str, table: str, projection: str)[source]

Bases: Missing

bucket: str
projection: str
schema: str
table: str
exception vastdb.errors.MissingRowIdColumn[source]

Bases: Missing

exception vastdb.errors.MissingSchema(bucket: str, schema: str)[source]

Bases: Missing

bucket: str
schema: str
exception vastdb.errors.MissingSnapshot(bucket: str, snapshot: str)[source]

Bases: Missing

bucket: str
snapshot: str
exception vastdb.errors.MissingTable(bucket: str, schema: str, table: str)[source]

Bases: Missing

bucket: str
schema: str
table: str
exception vastdb.errors.MissingTransaction[source]

Bases: Missing

exception vastdb.errors.NotFound(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.NotImplemented(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.NotSupported[source]

Bases: Exception

exception vastdb.errors.NotSupportedCommand(bucket: str, schema: str, table: str)[source]

Bases: NotSupported

bucket: str
schema: str
table: str
exception vastdb.errors.NotSupportedSchema(message: str | None = None, schema: pyarrow.Schema | None = None, cause: Exception | None = None)[source]

Bases: NotSupported

cause: Exception | None = None
message: str | None = None
schema: pyarrow.Schema | None = None
exception vastdb.errors.NotSupportedVersion(err_msg: str, version: str)[source]

Bases: NotSupported

err_msg: str
version: str
exception vastdb.errors.RequestTimeout(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.SchemaExists(bucket: str, schema: str)[source]

Bases: Exists

bucket: str
schema: str
exception vastdb.errors.ServiceUnavailable(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

exception vastdb.errors.Slowdown(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: ServiceUnavailable

exception vastdb.errors.TableExists(bucket: str, schema: str, table: str)[source]

Bases: Exists

bucket: str
schema: str
table: str
exception vastdb.errors.TooLargeRequest[source]

Bases: InvalidArgument

exception vastdb.errors.TooWideRow[source]

Bases: TooLargeRequest

exception vastdb.errors.UnexpectedError(code: str, message: str, method: str, url: str, status: int, headers: CaseInsensitiveDict)[source]

Bases: HttpError

vastdb.errors.from_response(res: Response)[source]
vastdb.errors.handle_unavailable(**kwargs)[source]