9

java.sql.SQLException offers an int getErrorCode() function so the program can know what in particular has happened to cause the exception. Any chance to get a list of these codes for MySQL?

Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
Ivan
  • 63,011
  • 101
  • 250
  • 382

1 Answers1

13

They're available in the MySQL documentation.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555