pyspi [Bug 318135] Improvements to error handling



Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=318135
 pyspi | general | Ver: CVS HEAD


Dave Malcolm changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #69112|0                           |1
        is obsolete|                            |




------- Comment #5 from Dave Malcolm  2006-07-18 16:04 UTC -------
Created an attachment (id=69126)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=69126&action=view)
Working version of exception handling

This patch:
(i) makes use of pyrex's "except *" feature to tell pyrex to add exception
propagation hooks (which I believe are not in by default for performance
reasons); these make exceptions work inside callbacks
(ii) introduces a SpiException class containing a scraped copy of the
SPIException data, which is raised

Works for me.  The only caveat is that we now have two exception classes, the
existing AtspiException class can probably be replaced using the "except" pyrex
clause (or renamed, perhaps?)


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact for the bug.
You are watching the assignee for the bug.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]