[DB-SIG] Error in DB-API 2.0

Godefroid Chapelle gotcha@swing.be
Fri, 10 May 2002 11:52:37 +0200


Hi,

After reading DB-API 2.0 spec, it is not clear for me which Error class 
should be raised when trying to reuse a primary key.

IntegrityError seems to be the best place but DataError could also be 
candidate.

Your opinion ?

Thanks
--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901
Mob + 32 (477) 363942

TVA 467 093 008
RC Niv 49849