Managing error codes throughout you project
Error-manager is a simple library for Python to manage all your projects error codes.
docs |
|
|---|---|
tests |
|
package |
error-manager main use cases
Main use case for the error-manager package is to implement a ListErrors class that can be used throughout your project to define and access immutable standard error codes and descriptions
# retrieve customer defined ErrorCode object form ``ListErrors`` class
>>> from errors.error import ListErrors
>>> ListErrors.API_GET_RETURNED_404
ErrorCode(
code='ER_API404_00001',
description='API get request returned 404',
error_data={})
# add custom error data to error message when you want to persist or log the error
# As the errorcode are immutable the add_error_data returns a new error (immutable) error code.
>>> from errors.base import add_error_data
>>> error_without_data = ListErrors.API_GET_RETURNED_404
>>> error_with_data = add_error_data(error_without_data, {'url': 'www.bad_url.com'})
>>> error_with_data
ErrorCode(
code='ER_API404_00001',
description='API get request returned 404',
error_data={'url': 'www.bad_url.com'})
This ErrorCode could be returned by the method performing the request so that the logic calling this method is aware of the failing request.
In order to use a single type as return value the error-manager package introduces a ReturnValue class that can hold the actual response, any possible downstream errors and the status of the return value. See ReturnValue documentation.
Documentation
Metadata
Release files for error-manager 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| error_manager-1.5.1.tar.gz | 31.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| error_manager-1.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.4 kB
Release files / error_manager-1.5.1.tar.gz
| Download URL | error_manager-1.5.1.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93bba0c416c192469cbeb2878ff73bda8045c7c5d10f34afb6430cb963d268b6
|
|
BLAKE2b-256 checksum How to use checksums |
9ebdf1bff19ff04049291b01fecfba50fd64512368da57292bd280ef18f16fef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.
Transparency logRelease files / error_manager-1.5.1-py3-none-any.whl
| Download URL | error_manager-1.5.1-py3-none-any.whl |
|---|---|
| Size | 22.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84144993ed56a8ba7800c00e9f207fb7da888b762b6b6d111c5649a6fc1bd854
|
|
BLAKE2b-256 checksum How to use checksums |
8d47db78cd56d796203a55f9ffb18755b36ccc004a21f0e9a5cdf6aec5ea45fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.
Transparency log