snowflake.core.exceptions¶

Exceptions

APIError(root[, status, reason, http_resp, ...])

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

ConflictError(root[, status, reason, http_resp])

Raised when we encounter an HTTP error code of 409.

FileGetError(*args)

FileOperationError(*args)

FilePutError(*args)

ForbiddenError(root[, status, reason, http_resp])

Raised when we encounter an HTTP error code of 403.

InvalidActionError(*args)

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

InvalidArgumentsError([reason])

Raised when function args are invalid.

InvalidIdentifierError(identifier)

Raised when an identifier does not meet identifier requirements.

InvalidOperationError([reason])

Raised when user tries to make an invalid operation.

InvalidResponseError([reason])

Raised when the api response is invalid.

InvalidResultError([reason])

Raised when function result is invalid.

MissingModuleError(module[, post_error_blurb])

Exception for missing modules.

NotFoundError(root[, status, reason, http_resp])

Raised when we encounter an HTTP error code of 404.

RetryTimeoutError([reason])

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

ServerError(root[, status, reason, http_resp])

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

SnowflakePythonError(*args)

The base exception class for all Snowflake Python related Errors.

UnauthorizedError(root[, status, reason, ...])

Raised when we encounter an HTTP error code of 401.

UnexpectedResponseError(root, resp)

Raised when spark-connect endpoint returns a response other than the expected protobuf.