[sqlalchemy] Raising exceptions from TypeDecorator.process_bind_param()

2011-06-21 Thread anton
Hi, I'm porting sqlamp [1] to SQLAlchemy 0.7 and have some difficulties with it. One of them is raising an exception (non-DBAPI) from process_bind_param() method of classes derived from TypeDecorator. In 0.6 [2] method _handle_dbapi_exception() of engine.base.Connectable doesn't munch the

Re: [sqlalchemy] Raising exceptions from TypeDecorator.process_bind_param()

2011-06-21 Thread Michael Bayer
I added StatementError after having too often a custom type or other kind of error happen deep inside the preparation for execution with no indication what statement or parameter caused the issue.It's an enhancement, and the original exception is associated with the new one as orig. In