carlogtt_python_library.exceptions.exceptions module

This module provides a collection of custom exception classes that can be used to handle specific error scenarios in a more precise and controlled manner. These exceptions are tailored to the needs of the library and can be raised when certain exceptional conditions occur during the program’s execution.

exception carlogtt_python_library.exceptions.exceptions.AwsSigV4SessionError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle AwsSigV4Session errors.

exception carlogtt_python_library.exceptions.exceptions.BindleError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle Bindle errors.

exception carlogtt_python_library.exceptions.exceptions.CarlogttLibraryError(*args)[source]

Bases: Exception

Custom exception class for CarlogttLibrary, providing enhanced functionality for error handling and reporting.

to_dict() dict[str, str][source]

Converts the exception to a dictionary.

Returns:

A dictionary with ‘exception’ as a key and the string representation of the exception as its value.

to_json() str[source]

Converts the exception to a JSON string.

Returns:

A JSON string representation of the exception, making it suitable for logging or transmitting as part of an API response.

exception carlogtt_python_library.exceptions.exceptions.CloudFrontError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle CloudFront errors.

exception carlogtt_python_library.exceptions.exceptions.CryptographyError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle Cryptography errors.

exception carlogtt_python_library.exceptions.exceptions.DatabaseError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle Database errors.

exception carlogtt_python_library.exceptions.exceptions.DynamoDBConflictError(*args)[source]

Bases: DynamoDBError

This is the base exception class to handle DynamoDB Conflict errors.

exception carlogtt_python_library.exceptions.exceptions.DynamoDBError(*args)[source]

Bases: DatabaseError

This is the base exception class to handle DynamoDB errors.

exception carlogtt_python_library.exceptions.exceptions.EC2Error(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle EC2 errors.

exception carlogtt_python_library.exceptions.exceptions.KMSError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle KMS errors.

exception carlogtt_python_library.exceptions.exceptions.LambdaError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle Lambda errors.

exception carlogtt_python_library.exceptions.exceptions.LoggerError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle Logger errors.

exception carlogtt_python_library.exceptions.exceptions.MiradorError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle Mirador errors.

exception carlogtt_python_library.exceptions.exceptions.MySQLError(*args)[source]

Bases: DatabaseError

This is the base exception class to handle MySQL errors.

exception carlogtt_python_library.exceptions.exceptions.PipelinesError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle Pipelines errors.

exception carlogtt_python_library.exceptions.exceptions.PostgresError(*args)[source]

Bases: DatabaseError

This is the base exception class to handle PostgreSQL errors.

exception carlogtt_python_library.exceptions.exceptions.RedisCacheManagerError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle RedisCacheManager errors.

exception carlogtt_python_library.exceptions.exceptions.S3Error(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle S3 errors.

exception carlogtt_python_library.exceptions.exceptions.SQLiteError(*args)[source]

Bases: DatabaseError

This is the base exception class to handle SQLite errors.

exception carlogtt_python_library.exceptions.exceptions.SecretsManagerError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle SecretsManager errors.

exception carlogtt_python_library.exceptions.exceptions.SimTError(*args)[source]

Bases: CarlogttLibraryError

This is the base exception class to handle SimTicket errors.

exception carlogtt_python_library.exceptions.exceptions.SimTHandlerError(*args)[source]

Bases: SimTError

DEPRECATED: Use SimTError instead. This subclass only exists for backward compatibility.