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.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

exceptioncontrol-0.1.0.1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file exceptioncontrol-0.1.0.1.tar.gz.

File metadata

  • Download URL: exceptioncontrol-0.1.0.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for exceptioncontrol-0.1.0.1.tar.gz
Algorithm Hash digest
SHA256 c4d1bbe827b14318333592624a6914447c8fe5eac95711d04edd2d2f3a94dbeb
MD5 5b40977ab064309df02c4701705802d0
BLAKE2b-256 5a9598f2ea247b1daa962c9bebf6a1ccde7f5ede9f9b81c96b2fdc87dd1b5c64

See more details on using hashes here.

Provenance

File details

Details for the file exceptioncontrol-0.1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for exceptioncontrol-0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c207e9630085ddb703a91cc8cb14276600660a9df12ecc23785acfa29d64571
MD5 da2273ddd90db63bf8312b0574d1adff
BLAKE2b-256 15a256449fa1ea723767a138bb8236e9e9365ccb7198ea01ae13151a8cb7e9a4

See more details on using hashes here.

Provenance

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