exc
All the exceptions raised by code in this library are contained in this module.
They all share a base class: EmtelliproError.
API
emtellipro.exc.EmtelliproError
Bases: Exception
Bases: Exception
Base class for all expections in this library.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.CancelledError
Bases: EmtelliproError
Bases: emtellipro.exc.EmtelliproError
Exception raised when an annotation task has been cancelled.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.APIError
Bases: EmtelliproError
Bases: emtellipro.exc.EmtelliproError
Exception raised for unexpected API-related errors
Attributes:
reason: the reason for the error as provided by the servertask_id: when available, the task ID the error is related to
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.HTTPClientError
Bases: APIError
Bases: emtellipro.exc.APIError
Exception for generic client errors (i.e. HTTP 4xx errors).
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.AuthenticationError
Bases: HTTPClientError
Bases: emtellipro.exc.HTTPClientError
Exception for authentication errors.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.TaskNotFoundError
Bases: APIError
Bases: emtellipro.exc.APIError
Exception indication the server does not know about the task ID it’s been sent.
Attributes:
reason: textual representation of why the task was not found as returned by the server
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.TaskFailedError
Bases: APIError
Bases: emtellipro.exc.APIError
Exception raised when a task submitted has failed.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.ServerError
Bases: APIError
Bases: emtellipro.exc.APIError
Exception for generic server errors (i.e. HTTP 5xx errors).
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.UnsupportedFormatForParsingError
Bases: EmtelliproError
Bases: emtellipro.exc.EmtelliproError
Exception raised when attempting to parse a result format we don’t provide a parser for in this SDK. This will usually occur when specifying the result format; if you’re interested in using our parsers, leave the result format unspecified.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.FileLoadError
Bases: EmtelliproError
Bases: emtellipro.exc.EmtelliproError
Error raised by file handlers when attempting to load a file.
Initialization
Initialize self. See help(type(self)) for accurate signature.
FileLoadError.__str__
FileLoadError.__repr__
emtellipro.exc.FiletypeNotSupportedError
Bases: FileLoadError, ValueError
Bases: emtellipro.exc.FileLoadError, ValueError
Raised when the given filepath or filetype is not supported using the available handlers.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseError
Bases: EmtelliproError
Bases: emtellipro.exc.EmtelliproError
Base exception which is subclassed by more specific exceptions
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.MissingFullTextSupport
Bases: DatabaseError
Bases: emtellipro.exc.DatabaseError
Raised when SQL Server is missing full-text support
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.InvalidURIException
Bases: DatabaseError
Bases: emtellipro.exc.DatabaseError
Exception raised when a provided URI is not valid.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseConnectionError
Bases: DatabaseError
Bases: emtellipro.exc.DatabaseError
Raised when connections to the database have failed.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseSchemaValidationError
Bases: DatabaseError
Bases: emtellipro.exc.DatabaseError
Raised when the schema of the database is not compatible with the schema defined in this library.
Subclasses of this exception will be more useful to catch.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseMissingVersionError
Bases: DatabaseSchemaValidationError
Bases: emtellipro.exc.DatabaseSchemaValidationError
Raised when alembic version is missing from the database.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseSchemaMissingColumnsError
Bases: DatabaseSchemaValidationError
Bases: emtellipro.exc.DatabaseSchemaValidationError
Raised when there are columns missing from the database that are requred by the SDK’s schema.
Attributes:
missing_columns: List of columns that are missing from the database’s schema.version: Can be one of “missing”, “latest”, or a specific older schema version identifier.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseSchemaConflict
Bases: DatabaseError
Bases: emtellipro.exc.DatabaseError
The database contains a schema that conflicts with the models defined in this library.
Attributes:
conflicts: A list of table names that already exist in the database, which are also needed in the library’s schema.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseMigrationError
Bases: DatabaseError
Bases: emtellipro.exc.DatabaseError
Raised for failed migrations.
Initialization
Initialize self. See help(type(self)) for accurate signature.
emtellipro.exc.DatabaseMissingError
Bases: DatabaseError
Bases: emtellipro.exc.DatabaseError
This is raised when the database we’re connecting to doesn’t exist, and the driver doesn’t raise its own error (mostly for Snowflake).
Initialization
Initialize self. See help(type(self)) for accurate signature.

