[ZODB-Dev] Exception when using dead connections

Toby Dickenson tdickenson at geminidataloggers.com
Thu May 8 17:55:09 EDT 2003


On Thursday 08 May 2003 4:39 pm, Christian Reis wrote:

> Even so, db.close() closes the storage and the same error appears. We
> need a way to guard against committing a transaction on a connection to
> a closed db *and* storage -- both are interchangeable there.

yes

> Is ValueError the correct exception?

I suggest some new exception class derived from POSException.StorageError. 
Call it POSException.ClosedError perhaps, to take inspiration from 
POSException.ReadOnlyError.


-- 
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson



More information about the ZODB-Dev mailing list