Skip to main content

Identitfy the exact exception class

Project description

Introduction

Exception handling is one of the most cruicial part of the coding practices. And it is always a good idea to handle the specific exception using try-except rather than just handling the Exception class in Python. This package can help you achieve the same.

Steps

  1. Install the package using pip install know-your-exceptions
  2. Import the decorator in your file using from know_your_exceptions.decorators import exc_finder
  3. Add this decorator over your function, and make sure that you function does not have any try-except block (so that this package can suggest you accurate exception handling method)

Example Response

Example response

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

know_your_exceptions-0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

know_your_exceptions-0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file know_your_exceptions-0.3.tar.gz.

File metadata

  • Download URL: know_your_exceptions-0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.3

File hashes

Hashes for know_your_exceptions-0.3.tar.gz
Algorithm Hash digest
SHA256 b77ce20f9588e5c42baec741d9c1ef3c5c5b364a42d145f710bd5617b90c71cc
MD5 692199f2a5e065dcfd9186ff99471a90
BLAKE2b-256 c81235e622d9792e22981e2621de4e4b7c51c18f3bb6be075f748ce1752779f2

See more details on using hashes here.

File details

Details for the file know_your_exceptions-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for know_your_exceptions-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04041221973910854ea3640bce6693e054fb2031ef87fadce55d6daab4cd55e4
MD5 8a4c9541c9f76943cd8910d66bff3e6a
BLAKE2b-256 49958b925fa0374d159d93258dbb23240ea610f423d24405c5177ef56ef987a5

See more details on using hashes here.

Supported by

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