[Gambas-user] Re; Error handling

Gareth Bult gareth at ...1689...
Sun Jul 22 16:12:55 CEST 2007


Excellent, many thanks!

--
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: 22 July 2007 13:16:58 o'clock (GMT) Europe/London
Subject: Re: [Gambas-user] Re; Error handling

On jeudi 19 juillet 2007, Gareth Bult wrote:
> 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.
>

I added a new Connection.Error integer property in the last revision.

It returns the error code of the last error raised by the underlying database 
driver. This error code may not be accurate in all database drivers. But I 
think it is for the mysql driver.

Regards,

-- 
Benoit Minisini

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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