An easily-extendable error class for use with python classes
Project description
es6-error
An easily-extendable error class for use with python classes
Why?
I made this because I wanted to be able to extend Error for inheritance and type checking .
Usage
class myClass(ExtendableError):
# // __init__ is optional; you should omit it if you just want a custom error
# // type for inheritance and type checking
def __init__(self, message='OOps!'):
super(message)
Todo
- tests
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
py-error-0.0.1.tar.gz
(1.6 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 py-error-0.0.1.tar.gz.
File metadata
- Download URL: py-error-0.0.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa2cf33429f49a01ecbfa866a92ff278ef3fd1d098456e9ac13a48f44b6b50db
|
|
| MD5 |
967cabff6c2c2b150095c46ade70c434
|
|
| BLAKE2b-256 |
9857f7b0c05487d58ffc893a716da50178a8bc4efcae77ded6f09da3f1f8da68
|
File details
Details for the file py_error-0.0.1-py3-none-any.whl.
File metadata
- Download URL: py_error-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ffb2e07eb7ea9e85676d072feefa1b9968f12e729a519fe3c761781bea81fec
|
|
| MD5 |
aa8f24f5ed0a29992d3fb306bae295f1
|
|
| BLAKE2b-256 |
7bf89016ad7dc4a261ee39f37d6e66df4ca3676e734fb3cfcd0e0b09aaef5438
|