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 details)
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 hed_exceptions-0.0.4.tar.gz.
File metadata
- Download URL: hed_exceptions-0.0.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1d675f23165cb70a3df640c71023fb2958a89106de2e6d848eb96513daa6e81
|
|
| MD5 |
97147a3df83a0301dbd3cc70f80a4b34
|
|
| BLAKE2b-256 |
0819ddd48c23eb5dd06b59a7039a868357ddf6f596c9fa5dcf1f46f40a2287d1
|
File details
Details for the file hed_exceptions-0.0.4-py3-none-any.whl.
File metadata
- Download URL: hed_exceptions-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9dcb2b089e2ac4e231ed21cb65c1c7f92841b460f6c34acf3033dbd89bc5fe2
|
|
| MD5 |
5c109f94e14774125b704c303c839f2e
|
|
| BLAKE2b-256 |
01354c47b34dbecb425554088bf9562e721e92179e57c63239395328c139cb79
|