RE: [sqlalchemy] how to pick up constraint violation errors in Alchemy

2016-01-04 Thread Gombas, Gabor
y 2016 08:16 > To: sqlalchemy@googlegroups.com > Subject: Re: [sqlalchemy] how to pick up constraint violation errors in > Alchemy > > > > On Sunday 03 January 2016 04:20 AM, Mike Bayer wrote: > > > > On 01/02/2016 01:02 PM, Krishnakant wrote: > >> hello all, > &

[sqlalchemy] how to pick up constraint violation errors in Alchemy

2016-01-02 Thread Krishnakant
hello all, I wish to know how I can pick up the constraint failure errors in my code? I think I would probably have to pick up the errors in a try: except: system? But What is the exact way of picking up the message? Do we have a ready made exception for each constraint? such as Unique or

Re: [sqlalchemy] how to pick up constraint violation errors in Alchemy

2016-01-02 Thread Mike Bayer
On 01/02/2016 01:02 PM, Krishnakant wrote: > hello all, > I wish to know how I can pick up the constraint failure errors in my code? > I think I would probably have to pick up the errors in a try: except: > system? that is correct. > But What is the exact way of picking up the message? You'd

Re: [sqlalchemy] how to pick up constraint violation errors in Alchemy

2016-01-02 Thread Krishnakant
On Sunday 03 January 2016 04:20 AM, Mike Bayer wrote: On 01/02/2016 01:02 PM, Krishnakant wrote: hello all, I wish to know how I can pick up the constraint failure errors in my code? I think I would probably have to pick up the errors in a try: except: system? that is correct. But What is