universal error handling for python functions.
Project description
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().
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ccaerrors-0.1.2.tar.gz.
File metadata
- Download URL: ccaerrors-0.1.2.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.15.48-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e742ec09335dbb313116cc25c1f9f361e17262d9e079be4ec2757d76fb6b580
|
|
| MD5 |
f8107fb5a77f7ef9e99c77b1b2f0118c
|
|
| BLAKE2b-256 |
0a812121b11db02586ce4f8fb4cda0e973ad753c79ebf3623f37fd7843b29079
|
File details
Details for the file ccaerrors-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ccaerrors-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.15.48-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb5bdec65f073c2e2d2db33aaff9a6d7f8ac178875f0df1ca96177c9927f228e
|
|
| MD5 |
3bf9dec3657cefaded22f28b2f1f3584
|
|
| BLAKE2b-256 |
e8e98de4db5b9aeabe8badc5788468d2e4c473860a6e00aced46ad0b06c5a7f3
|