Source code for plaidml.exceptions
# Copyright Vertex.AI
[docs]class PlaidMLError(Exception):
"""The base class of exceptions raised by VertexAI library operations."""
[docs]class Cancelled(PlaidMLError):
"""Indicates that an asynchronous operations was cancelled."""
pass
[docs]class Unknown(PlaidMLError):
"""A generic catch-all error."""
pass
[docs]class InvalidArgument(PlaidMLError):
"""Indicates that at least one invalid argument was passed to a function."""
pass
[docs]class DeadlineExceeded(PlaidMLError):
"""The operation deadline was exceeded."""
pass
[docs]class NotFound(PlaidMLError):
"""The requested object was not found."""
pass
[docs]class AlreadyExists(PlaidMLError):
"""The requested object already exists."""
pass
[docs]class PermissionDenied(PlaidMLError):
"""The caller does not have permission to access a required resource."""
pass
[docs]class ResourceExhausted(PlaidMLError):
"""A resource required by the operation is exhausted."""
pass
[docs]class FailedPrecondition(PlaidMLError):
"""A precondition required by the operation is unmet."""
pass
[docs]class Aborted(PlaidMLError):
"""A transactional operation was aborted by the system."""
pass
[docs]class OutOfRange(PlaidMLError):
"""A call parameter is out of the range accepted by the implementation."""
pass
[docs]class Unimplemented(PlaidMLError):
"""The requested functionality is not implemented."""
pass
[docs]class Internal(PlaidMLError):
"""An internal error occurred."""
pass
[docs]class Unavailable(PlaidMLError):
"""A resource required by the operation is unavailable for use."""
pass
[docs]class DataLoss(PlaidMLError):
"""The system has lost data required by the operation."""
pass
[docs]class Unauthenticated(PlaidMLError):
"""The caller is unauthenticated."""
pass