Set of custom exceptions aimed to reduce typing.
Project description
hed_exceptions
Set of custom exceptions aimed to reduce typing.
Details
I wander why Python is lacking similar builtin types...
Catalog
-
ArgumentError
def charge(me): raise ArgumentError("me") def recharge(me): raise ArgumentError("me", "Plug not found!") ... charge("money") # ArgumentError('Bad arg!', Arg(name='me', type=<class 'str'>, value='money')) ... recharge("battery") # ArgumentError('Plug not found!', Arg(name='me', type=<class 'str'>, value='battery'))
Dependencies
- None
Installation
pip install hed_exceptions
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
hed_exceptions-0.0.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for hed_exceptions-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9dcb2b089e2ac4e231ed21cb65c1c7f92841b460f6c34acf3033dbd89bc5fe2 |
|
MD5 | 5c109f94e14774125b704c303c839f2e |
|
BLAKE2b-256 | 01354c47b34dbecb425554088bf9562e721e92179e57c63239395328c139cb79 |