ccaerrors-0.1.2
توضیحات
universal error handling for python functions.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ccaerrors-0.1.2 |
| نام | ccaerrors |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ccdale |
| ایمیل نویسنده | chris.charles.allison+ccaerrors@gmail.com |
| آدرس صفحه اصلی | https://github.com/ccdale/ccaerrors.git |
| آدرس اینترنتی | https://pypi.org/project/ccaerrors/ |
| مجوز | GPL-3.0-or-later |
# ccaerrors
Universal error handling for python functions.
## Usage
```
import sys
from ccaerrors import errorNotify
def somefunction():
try:
pass
except Exception as e:
errorNotify(sys.exc_info()[2], e)
```
### `errorNotify`
print the function name and the Exception details to stdout.
### `errorRaise`
print the function name and the Exception details to stdout and also re-raise the Exception
### `errorExit`
print the function name and the Exception details to stdout. Exit the script by calling `sys.exit()`.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl ccaerrors-0.1.2:
pip install ccaerrors-0.1.2.whl
نصب پکیج tar.gz ccaerrors-0.1.2:
pip install ccaerrors-0.1.2.tar.gz