Exception code not Documented

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
nuntio2000
Posts: 19
Joined: Fri 19 Nov 2004 18:51
Location: South Italy

Exception code not Documented

Post by 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

Oleg
Devart Team
Posts: 264
Joined: Thu 28 Oct 2004 13:56

Re: Exception code not Documented

Post by 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)

Post Reply