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
ccaerrors-0.1.2.tar.gz
(13.8 kB
view hashes)
Built Distribution
ccaerrors-0.1.2-py3-none-any.whl
(13.9 kB
view hashes)
Close
Hashes for ccaerrors-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb5bdec65f073c2e2d2db33aaff9a6d7f8ac178875f0df1ca96177c9927f228e |
|
MD5 | 3bf9dec3657cefaded22f28b2f1f3584 |
|
BLAKE2b-256 | e8e98de4db5b9aeabe8badc5788468d2e4c473860a6e00aced46ad0b06c5a7f3 |