What numeric range the mysql error codes lie in?
I would be creating a custom error handling routing for my webapp in codeignite开发者_JAVA技巧r and I would be using custom error codes for that. What is the numeric range of error codes generated by mysql, so that I keep my custom error codes out of that range?
It looks like MySQL uses 1000-1999 for server errors and 2000+ for client errors.
Client error numbers max out at 2999, so something 5000 and up should be safe.
精彩评论