Skip to main content

Helper class for exception handling

Project description

ExceptionControl

The ExceptionControl class is designed to be a helper class that is inherited into a class to give it a convenient interface to implement conditional exception handling options. The purpose of this is to give developers additional flexibility in how events can be handled and tune the overall behaviour via parameters while adding minimal additional control code.

In many codes one may wish their code to take a fail fast approach to handling issues such as unexpected input or other errors. While this method often works well to rapidly identify problems by causing an application to exit, there are times when maybe just a warning is sufficient.

ExceptionControl allows us to classify an event based on its severity using a threshold setting that can be changed. This gives us two degrees of control over the handling of an event. First, by assigning the level of severity of the event itself we can direct what happens when the event is triggered. Second, we can set thresholds that direct the behaviour of the handler when an event is triggered.

Documentation and User Guide

See the User Guide for detailed documentation on the package. This includes the API docs, user guide, and examples.

History

ExceptionControl is pulled from ConfigParserEnhanced into its own module because it is an interesting and useful class. Splitting these up was the intent from the beginning when it was originally developed.

Updates

See CHANGELOG for information on changes.

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

exceptioncontrol-0.1.0.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

exceptioncontrol-0.1.0-py3-none-any.whl (17.1 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