DbException.ErrorCode is same for unique constraint and foreign key constraint 
when using firebird .NET data provider. I need more specific error code to 
throw exact exception.
 
 

________________________________

From: [EMAIL PROTECTED] on behalf of Jiri Cincura
Sent: Fri 11/23/2007 6:21 PM
To: For users and developers of the Firebird .NET providers
Subject: Re: [Firebird-net-provider] How to get Error Code



On 11/23/07, Tomy Handaka <[EMAIL PROTECTED]> wrote:
> How can I get the error code through DbException class? (Note: I don't use
> FbException class)

The class has property DbException.ErrorCode and FbException is
derived from DbException.

--
Jiri {x2} Cincura (Microsoft Student Partner)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com 
<http://www.id3renamer.com/> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to