python-infrastructure-exceptions¶
Typed exceptions for infrastructure layer failures (database, cache, messaging, external services).
Installation¶
pip install python-infrastructure-exceptions
Public API¶
Exception |
Extra fields |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Usage¶
from python_infrastructure_exceptions import DatabaseError, CacheError
raise DatabaseError("Connection lost", query="SELECT ...", details={...})
raise CacheError("Timeout", cache_backend="redis", key="user:123")
See also: exception libraries comparison