google.gax.errors

Provides GAX exceptions.

Functions

create_error(msg[, cause]) Creates an error.

Exceptions

GaxError(msg[, cause]) Common base class for exceptions raised by GAX.
RetryError(msg[, cause]) Indicates an error during automatic GAX retrying.
exception GaxError(msg, cause=None)[source]

Common base class for exceptions raised by GAX.

msg

string – describes the error that occurred.

cause

Exception, optional – the exception raised by a lower layer of the RPC stack (for example, gRPC) that caused this exception, or None if this exception originated in GAX.

exception RetryError(msg, cause=None)[source]

Indicates an error during automatic GAX retrying.

create_error(msg, cause=None)[source]

Creates an error.

Uses a Python built-in exception if one is available, and a GaxError otherwise.

msg

string – describes the error that occurred.

cause

Exception, optional – the exception raised by a lower layer of the RPC stack (for example, gRPC) that caused this exception, or None if this exception originated in GAX.