Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justdvnsh/py-error
An easily-extendable error class for use with python classes
https://github.com/justdvnsh/py-error
classes error-handling exception-handling inheritance python
Last synced: 22 days ago
JSON representation
An easily-extendable error class for use with python classes
- Host: GitHub
- URL: https://github.com/justdvnsh/py-error
- Owner: justdvnsh
- License: mit
- Created: 2018-06-26T08:41:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T08:42:15.000Z (over 6 years ago)
- Last Synced: 2024-11-15T16:51:34.725Z (about 2 months ago)
- Topics: classes, error-handling, exception-handling, inheritance, python
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
```python
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