Presents:
return_exc_info: call supplied function with arguments, return either (function_result, None) or (None, exc_info) if an exception was raised.
@returns_exc_info, a decorator for a function which wraps in it return_exc_info.
@noexc, a decorator for a function whose exceptions should never escape; instead they are logged. The initial use case was inside logging functions, where I have had a failed logging action abort a program. Obviously this is a decorator which should see very little use.
@noexc_gen, a decorator for generators with similar effect to @noexc for ordinary functions.
NoExceptions, a context manager to intercept most exceptions
LogExceptions, a context manager to log exceptions
@logexc, a decorator to make a function log exceptions it raises
@transmute, a decorator to transmute an inner exception to another exception type
@unattributable, a decorator to transmute inner AttributeError into a RuntimeError
@unimplemented, a decorator to make a method raise NotImplementedError
Release files for cs-excutils 20170904
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.excutils-20170904.tar.gz | 3.9 kB | Details |
Release files / cs.excutils-20170904.tar.gz
| Download URL | cs.excutils-20170904.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
605660d398b1c4756f66d824b30b0ea8af71982d46790391fe81ba5cdfa506a1
|
|
BLAKE2b-256 checksum How to use checksums |
f4bcc92461b72230cb3b9338e59d79cd940e42457c7cee218c35d9b8467e7779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |