Skip to main content

Timeline for answer to Deciding which exceptions to catch in Python by Ignacio Vazquez-Abrams

Current License: CC BY-SA 3.0

Post Revisions

6 events
when toggle format what by license comment
Jun 1, 2011 at 10:58 vote accept user225312
Jun 1, 2011 at 10:54 comment added Ignacio Vazquez-Abrams Absolutely. All derived exceptions are also instances of the base exception.
Jun 1, 2011 at 10:53 comment added user225312 But if I don't want to handle the specific exception in a different way, is using the base exception class all right?
Jun 1, 2011 at 10:52 comment added Ignacio Vazquez-Abrams Because you may want to handle the derived exception in a different way from the base exception.
Jun 1, 2011 at 10:50 comment added user225312 But why catch the derived one at all, when the base can handle everything?
Jun 1, 2011 at 10:48 history answered Ignacio Vazquez-Abrams CC BY-SA 3.0