Re: [IronPython] Dealing with exceptions in an extension module

2010-04-30 Thread Lukas Cenovsky
Dino Viehland wrote: Jeff wrote: I'm trying to fix up the exceptions for the _sqlite3 module I'm implementing. The dbapi spec (PEP 249) requires a very specific exception hierarchy, including exceptions derived from StandardError. My initial version just used C# Exception classes, but Standa

Re: [IronPython] Dealing with exceptions in an extension module

2010-04-30 Thread Jeff Hardy
On Fri, Apr 30, 2010 at 4:10 PM, Dino Viehland wrote: > There's a public PythonOps.CreateThrowable.  It just forwards the call > to the internal PythonExceptions.CreateThrowable. Ah, thank you. > Yeah, maybe we should remove the internals visible to and make everything > it relies on public.  I

Re: [IronPython] Dealing with exceptions in an extension module

2010-04-30 Thread Dino Viehland
Jeff wrote: > I'm trying to fix up the exceptions for the _sqlite3 module I'm > implementing. The dbapi spec (PEP 249) requires a very specific > exception hierarchy, including exceptions derived from StandardError. > > My initial version just used C# Exception classes, but StandardError > is not

[IronPython] Dealing with exceptions in an extension module

2010-04-30 Thread Jeff Hardy
I'm trying to fix up the exceptions for the _sqlite3 module I'm implementing. The dbapi spec (PEP 249) requires a very specific exception hierarchy, including exceptions derived from StandardError. My initial version just used C# Exception classes, but StandardError is not a normal class, so that