yahooquery icon indicating copy to clipboard operation
yahooquery copied to clipboard

Create and raise module-defined exceptions

Open valankar opened this issue 2 years ago • 0 comments

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.

valankar avatar Apr 24 '23 07:04 valankar