mysql - How can I determine the MySqlException.Number? -


i thinking of creating case statement mysqlexceptions, based on number property. there easy way determine if exception relates specific case? example, number "1062" always refer "duplicate entry"?

according mysql documentation answer question is, yes.

http://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html

or 5.6

http://dev.mysql.com/doc/refman/5.6/en/error-messages-server.html

when in doubt go dev.mysql...


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

Simple Angular 2 project fails 'Unexpected reserved word' -

ios - Possible to get UIButton sizeThatFits to work? -