google.gax.errors

Provides GAX exceptions.

Functions

create_error(msg[, cause]) Creates a GaxError or subclass.

Exceptions

GaxError(msg[, cause]) Common base class for exceptions raised by GAX.
InvalidArgumentError(msg[, cause]) GAX exception class for INVALID_ARGUMENT errors.
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 InvalidArgumentError(msg, cause=None)[source]

GAX exception class for INVALID_ARGUMENT errors.

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 a GaxError or subclass.

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.

Returns:The exception that wraps cause.
Return type:GaxError