Exception code not Documented

Exception code not Documented

Postby nuntio2000 » Sat 27 Nov 2004 18:14

Hi,
please could you provide documentation for the exception code below:

Code: Select all
switch (exception.Code) {
          case 1045:
            ActiveControl = edUser;
            break;
          case 2003:
          case 2005:
            ActiveControl = edHost;
            break;


Thx,
Nunzio
nuntio2000
 
Posts: 19
Joined: Fri 19 Nov 2004 18:51
Location: South Italy

Re: Exception code not Documented

Postby Oleg » Mon 29 Nov 2004 14:01

You can find error codes in MySQL documentation.

For example, as it is written in the documentation:

> * Error: `2003' (`CR_CONN_HOST_ERROR')
>
> Message: Can't connect to MySQL server on '%s' (%d)
>
> * Error: `2005' (`CR_UNKNOWN_HOST')
>
> Message: Unknown MySQL server host '%s' (%d)
Oleg
Devart Team
 
Posts: 264
Joined: Thu 28 Oct 2004 13:56


Return to dotConnect for MySQL