项目作者: justdvnsh

项目描述 :
An easily-extendable error class for use with python classes
高级语言: Python
项目地址: git://github.com/justdvnsh/py-error.git
创建时间: 2018-06-26T08:41:28Z
项目社区:https://github.com/justdvnsh/py-error

开源协议:MIT License

下载


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

  1. class myClass(ExtendableError):
  2. # // __init__ is optional; you should omit it if you just want a custom error
  3. # // type for inheritance and type checking
  4. def __init__(self, message='OOps!'):
  5. super(message)

Todo

  • tests