Skip to main content

All Questions

12 votes
1 answer
4k views

When should I subclass an exception in Python?

In my code there are about seven places where I raise an exception. All of these exceptions are treated the same: print an error to log file, return software state to default and exit. During code ...
Ezra's user avatar
  • 365