https://github.com/withprecedent/sabaka
Flexible python error messaging
https://github.com/withprecedent/sabaka
error-handling errors exception-handling exceptions python
Last synced: over 1 year ago
JSON representation
Flexible python error messaging
- Host: GitHub
- URL: https://github.com/withprecedent/sabaka
- Owner: WithPrecedent
- License: apache-2.0
- Created: 2023-02-23T18:22:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T21:21:23.000Z (over 3 years ago)
- Last Synced: 2025-02-17T13:04:47.194Z (over 1 year ago)
- Topics: error-handling, errors, exception-handling, exceptions, python
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.python.org/) [](https://pypi.org/project/sabaka/) [](https://opensource.org/licenses/Apache-2.0) [](http://sabaka.readthedocs.io/?badge=latest)
# What is sabaka?
In Belter Creole, in the TV show The Expanse (and in the books on which the show was based), "Sabaka" means ["a general-purpose curse; "Dammit!" or "You bastard!"](https://expanse.fandom.com/wiki/Belter_Creole), a suitable name for an error messaging package. The purpose of **sabaka** is to expand options for error messages beyond passed strings to include:
1. a message composed from passed args and kwargs; and
2. a default message.
This is done by either using one of the included Exception subclasses or by mixing-in one of the mixin classes which add other messaging options to Python's base exceptions.
# Examples
# API
## Exceptions
## Exception Mixins
# Contributing
Contributors are always welcome and should find **sabaka** easy to work with. The project is highly documented so that users and developers can make **sabaka** work with their projects. It is designed for Python coders at all levels. Beginners should be able to follow the readable code and internal documentation to understand how it works. More advanced users should find complex and tricky problems addressed through efficient code.