dpguthrie / dpguthrie/yahooquery

Create and raise module-defined exceptions

Open
#184 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
920
Forks
164
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I would like to catch module-level exceptions.

**Describe the solution you'd like**
The general Python solution here is to create a module-level exception class that is subclassed throughout the code. The interface should define what exceptions could be raised. The caller can then catch/handle these exceptions.

**Describe alternatives you've considered**
I currently use 'except Exception...' which is not good.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.