[storm] Exceptions
Christopher Armstrong
radix at twistedmatrix.com
Tue Sep 4 05:28:30 BST 2007
On 8/31/07, akira <nhytro-python at web.de> wrote:
>
> Hi there!
>
> Is there a list of Exceptions somewhere that I can programm against? For
> example when a database throws an error about a field constraint being
> unique, or cascading errors?
Hi akira. dbapi exceptions are all in storm.exceptions, as subclasses of
DatabaseError. They will be raised whenever dbapi says they will be raised,
according to Storm's usage (which unfortunately is not totally clear).
Ideally the API documentation will include full information about what
methods raise which exceptions. I've been working on it gradually, but
there's more to do. Patches accepted :-) But what we have so far is here:
http://twistedmatrix.com/users/radix/storm-api/
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20070904/3d173ba9/attachment.htm
More information about the storm
mailing list