Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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