This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/12118] New: add gdb.error base class for exceptions


http://sourceware.org/bugzilla/show_bug.cgi?id=12118

           Summary: add gdb.error base class for exceptions
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com


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.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]