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 -

c# - ItextSharp font color issue in ver 5.5.4+ -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -