src.exceptions package

Submodules

src.exceptions.exceptions module

exception src.exceptions.exceptions.CollectionIsNone(message='Collection is None, check the credentials and connection.', code='COLLECTION_NONE_ERROR_003')[source]

Bases: Exception

Exception raised for errors with empty collection.

get_code()[source]

Gets the exception code.

get_message()[source]

Gets the exception message.

exception src.exceptions.exceptions.ConnectionNotConfigured(message='Firestore connection not configured.', code='CONNECTION_NOT_CONFIGURED_004')[source]

Bases: Exception

Exception raised for errors when connection is not configured.

get_code()[source]

Gets the exception code.

get_message()[source]

Gets the exception message.

exception src.exceptions.exceptions.CredentialsError(message='Provided credentials returned error.', code='CREDENTIALS_INVALID_001')[source]

Bases: Exception

Exception raised for errors when credentials are invalid.

get_code()[source]

Gets the exception code.

get_message()[source]

Gets the exception message.

exception src.exceptions.exceptions.DBError(message='DB connection error.', code='DB_CONNECTION_ERROR_002')[source]

Bases: Exception

Exception raised for errors with DB connection.

get_code()[source]

Gets the exception code.

get_message()[source]

Gets the exception message.

Module contents