Page 1 of 1

Question about EMyError

Posted: Mon 25 Jun 2007 09:04
by flashLAV
Hi...
I try to create processing of various exception through EMyError but sometimes EMyError.Message gives not formatted line...
Example (with TMyConnection):

- try connect with wrong login/pass:
#28000Access denied for user ......

- try connect with wrong database name
#42000Unknown database .....

What is digits before text string?

Posted: Tue 26 Jun 2007 15:08
by Antaeus
This message is sent by MySQL server. Digits before text are the MySQL server error number.

Posted: Wed 27 Jun 2007 07:00
by flashLAV
Well, I understood...
In other words, if I receive message (example, '"#28000Access denied for user ... ', where no blank between numbers and string), this message is direct from a server.
If I need more legible messages, I can take E.ErrorCode for for these purposes

Thanks