Module: tf.compat.v1.errors

Public API for tf._api.v2.errors namespace

Classes

class AbortedError: Raised when an operation was aborted, typically due to a concurrent action.

class AlreadyExistsError: Raised when an entity that we attempted to create already exists.

class CancelledError: Raised when an operation is cancelled.

class DataLossError: Raised when unrecoverable data loss or corruption is encountered.

class DeadlineExceededError: Raised when a deadline expires before an operation could complete.

class FailedPreconditionError: Raised when some prerequisites are not met when running an operation.

class InternalError: Raised when the system experiences an internal error.

class InvalidArgumentError: Raised when an operation receives an invalid argument.

class NotFoundError: Raised when a requested entity (e.g., a file or directory) was not found.

class OpError: The base class for TensorFlow exceptions.

class OutOfRangeError: Raised when an operation iterates past the valid range.

class PermissionDeniedError: Raised when the caller does not have permission to run an operation.

class ResourceExhaustedError: Raised when some resource has been exhausted while running operation.

class UnauthenticatedError: Raised when the request does not have valid authentication credentials.

class UnavailableError: Raised when the runtime is currently unavailable.

class UnimplementedError: Raised when an operation has not been implemented.

class UnknownError: Unknown error.

class raise_exception_on_not_ok_status: Context manager to check for C API status.

Functions

error_code_from_exception_type(...)

exception_type_from_error_code(...)

ABORTED 10
ALREADY_EXISTS 6
CANCELLED 1
DATA_LOSS 15
DEADLINE_EXCEEDED 4
FAILED_PRECONDITION 9
INTERNAL 13
INVALID_ARGUMENT 3
NOT_FOUND 5
OK 0
OUT_OF_RANGE 11
PERMISSION_DENIED 7
RESOURCE_EXHAUSTED 8
UNAUTHENTICATED 16
UNAVAILABLE 14
UNIMPLEMENTED 12
UNKNOWN 2