Unit
MySQLDrivers
Declaration
procedure MYSQLError(Int: TMySQLBase; ErrNo: integer = - 1; Msg: string = ''; IntVer: integer=-1; ClientVer: integer=-1);
Description
A generic EMySQLError exception raising function, giving version dependent information on the last MySQL error. If you handle this exception yourself you can use the EMySQLError.Error integer property to obtain the error number of the library or the mysql server. Using the constants defined in the MySQLDrivers unit you can respond accordingly to the exceptions. All of the MyComponents code uses this routine to generate errors and thus creates an EMySQLError exception.