Where to get all error codes (mysql_errno)

For a long time I wanted to write my own class for handling exceptions when working with mysql. Actually the question is – where can I find (and is it possible at all) all the codes of all possible errors?

P.S.: Google didn’t help.

Answer 1

Most likely in MySql documentation