Page 1 of 1

Exception code not Documented

Posted: Sat 27 Nov 2004 18:14
by nuntio2000
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

Re: Exception code not Documented

Posted: Mon 29 Nov 2004 14:01
by Oleg
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)