You are viewing documentation about an older version (0.13.1). View latest version

snowflake.core.exceptions¶

Exceptions

APIError([status, reason, http_resp, request_id])

Raised when there is an exception with any of the API Error Codes.

NotFoundError([status, reason, http_resp])

Raised when we encounter an HTTP error code of 404.

UnauthorizedError([status, reason, http_resp])

Raised when we encounter an HTTP error code of 401.

ForbiddenError([status, reason, http_resp])

Raised when we encounter an HTTP error code of 403.

ServerError([status, reason, http_resp])

Raised when we encounter an HTTP error code of 5NN.

ConflictError([status, reason, http_resp])

Raised when we encounter an HTTP error code of 409.

InvalidActionError(*args)

Raised when the user makes an invalid action such as invalid parameters or when the API response is invalid.

InvalidResponseError([reason])

Raised when the api response is invalid.

InvalidArgumentsError([reason])

Raised when function args are invalid.

InvalidResultError([reason])

Raised when function result is invalid.

InvalidOperationError([reason])

Raised when user tries to make an invalid operation.

RetryTimeoutError([reason])

Raised when a request times out after any amount of retries.

MissingModuleError(module[, post_error_blurb])

Exception for missing modules.

FileOperationError(*args)

FilePutError(*args)

FileGetError(*args)