#639 closed defect (fixed)

stop using RuntimeError

Reported by: warner Owned by: warner
Priority: minor Milestone: 1.4.1
Component: code Version: 1.3.0
Keywords: Cc:
Launchpad Bug:

Description

I've had the unfortunate habit of using RuntimeError whenever I needed to raise an exception and couldn't find a better one to use. David Reid points out that RuntimeError is really meant to indicate internal problems in the Python runtime, like out-of-memory or internal assertion failures.

So the task is to find all instances of RuntimeError and replace them with better exception classes, creating new-and-informative ones if necessary. Also, remind myself to stop using RuntimeError in the future.

Change History (1)

comment:1 Changed at 2009-02-22T23:45:00Z by warner

  • Milestone changed from undecided to 1.3.1
  • Priority changed from major to minor
  • Resolution set to fixed
  • Status changed from new to closed

Fixed, by d95b01a214b0acb1 through 247c23904c4383a6.

Note: See TracTickets for help on using tickets.