Skip to content

An easily-extendable error class for use with python classes

License

Notifications You must be signed in to change notification settings

justdvnsh/py-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An easily-extendable error class for use with python classes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages