Bug 12118 - add gdb.error base class for exceptions
Summary: add gdb.error base class for exceptions
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 19:36 UTC by Tom Tromey
Modified: 2010-11-15 16:54 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.