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 hashes)