Bug 12118

Summary: add gdb.error base class for exceptions
Product: gdb Reporter: Tom Tromey <tromey>
Component: pythonAssignee: Tom Tromey <tromey>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: HEAD   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Tom Tromey 2010-10-13 19:36:52 UTC
Right now all gdb exceptions are turned into RuntimeException instances.
We should have a gdb-specific exception class instead.
It should be derived from RuntimeException, so that existing code
does not break.

Mark F. suggested "gdb.error" as the name, by analogy with "os.error"
and others from the python core.

We could add further subclasses to distinguish the different kinds of
gdb exception.
Comment 1 Tom Tromey 2010-11-15 16:54:11 UTC
Fix checked in.