dispatchrun / dispatch-py

Python package to develop applications with Dispatch.
https://pypi.org/project/dispatch-py/
Apache License 2.0
56 stars 3 forks source link

Implement custom error types #95

Closed Pryz closed 8 months ago

Pryz commented 8 months ago

Developers should be able to define their own error type and be able to codify if some errors are temporary or permanent.

chriso commented 8 months ago

Users can use register_error_type from the dispatch.status package to register their own exception base classes, and provide a function which returns an appropriate status given an exception object.

For examples, see: