"""Custom exceptions module.""" class PermanentError(Exception): """Base class for permanent errors (non-retriable). Permanent errors represent failures that cannot be resolved by retrying the operation, such as validation errors, missing data, or logic errors. """ class TransientError(Exception): """Retriable transient error (network, throttling, temporary failures). Transient errors represent temporary failures that may succeed if retried, such as network timeouts, database connection issues, or service throttling. """