[Gambas-user] Re; Error handling
Gareth Bult
gareth at ...1689...
Thu Jul 19 15:22:19 CEST 2007
Ok,
So ... I need to distinguish between program errors (in which case I display an error message) and database disconnections (im which case I auto-reconnect) .. reading the text of the error message is such a bad solution on sooooo many levels ...
Is there an alternative ?
Gareth.
--
Gareth Bult, Encryptec Limited
Tel: 0845 25 77033, Mob: 07891 389657
Email: gareth at ...1689...
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.
----- Original Message -----
From: "Benoit Minisini" <gambas at ...1...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: Thursday, July 19, 2007 1:55:32 PM (GMT) Europe/London
Subject: Re: [Gambas-user] Re; Error handling
On jeudi 19 juillet 2007, Gareth Bult wrote:
> Hi, (me again!)
>
> I'm trying to do some database error trapping .. it seems that Error.Text
> is very reliable .. However "Error.Code" always seems to return "-1" ..
> (for example if the database connection has "gone away")
>
> Is this normal ?
> Is there another variable that holds the real error code ?
>
> tia
> Gareth.
There is no error code for components, only for the native language.
Regards,
--
Benoit Minisini
-------------------------------------------------------------------------
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/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list