In Sp, I throw an exception
WHEN any DO
exception CUSTOMER_DUPLI_CODE 'Duplicate Code';
and write try catch at code(C#)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jiri Cincura
Sent: Tuesday, April 17, 2007 20:44 PM
To: For users and developers of the Firebird .NET providers
Subject: Re: [Firebird-net-provider] How to get exception message without
Exception Name and line code
Pham Huu Le Quoc Phuc wrote:
> Hi all!
> I want to get Exception Message without Exception Name and line
>
> Ex:
> "CUSTOMER_DUPLI_CODE\r\nDuplicate code\r\nAt procedure 'CUSTOMER_IU' line:
> 50, col: 9"
> -->
> I want: "Duplicate Code"
And where/how you're handling/logging exceptions?
--
Jiri {x2} Cincura
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider