Error Handling

Updated 1 month ago by Florijan Stamenkovic

Labelbox error handling

Labelbox exception types are declared in the labelbox.exceptions package. Following is a list of exception types and their meanings.

LabelboxError

Base class for all Labelbox exception classes.

AuthenticationError

API_KEY is missing or invalid.

AuthorizationError

Attempting to perform an operation you don't have permission for.

ResourceNotFoundError

Looking up a specific object based on it's ID, and that object is not found in the database (either due to an invalid ID or the object was deleted).

ValidationFailedError

Query failed validation, for example due to too large estimated query cost. Should only be possible when executing a custom GraphQL query using labelbox.Client.execute.

InvalidQueryError

Malconstructed or unsupported GraphQL query, either due to bad syntax or semantics (i.e. invalid field names). Should only be possible when executing a custom GraphQL query using labelbox.Client.execute.

NetworkError

A networking error during query execution.

TimeoutError

The server is taking too long to respond to a query.

InvalidAttributeError

Using an invalid attribute when creating, updating, filtering or sorting objects. It's possible that in some of these situations a ValidationFailedError gets raised instead.

ApiLimitError

Too many requests made in a brief period of time.


How did we do?