Current collected state Current
Observed since 20 Oct, 16:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
a3exception is a package for unifying exceptions during front-end and back-end communication.
English | 简体中文
a3exception is a package for unifying exceptions during front-end and back-end communication.
pip install a3exception
from a3exception.dynamic_error_factory import DynamicErrorFactory
from a3exception.errors import Error
class MyError(Error):
def __init__(self, message: str, **kwargs):
super().__init__(message=message, **kwargs)
if __name__ == "__main__":
DynamicErrorFactory.add_custom_error_cls(MyError)
error_message = "custom error"
error = DynamicErrorFactory.build_error_by_status(status=MyError.__name__, message=error_message)
assert isinstance(error, MyError)
assert error.message == error_message
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.3.0 | 10 Mar 2025 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 16:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c04c2d553543152cddef6be779ad12a5d3c0b49c58006344dc31df8a219a26a0