Duplicate entry '10022438' for key 2

Hello everyone, I need your help.

I receive this error in mysql:
[MySQL][ODBC 5.1 Driver][mysqld-5.0.45-community-nt-log]Duplicate entry ‘10022438’ for key 2

Because in my table the field card as index type unique.

To many this error is incomprehensible: can be a way in mysql to explain this error at the time of registration (for example this value already exists)… or only it’s possible with a language server-side?

Regards.

you have to translate the mysql message into user-friendly words in your application, you cannot do it in mysql