Skip to main content

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


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)

Uploaded Source

Built Distribution

py_error-0.0.1-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page