Search code examples
javamysqljdbcjruby

Is there a MySQL JDBC Exception list that describes what each exception gets thrown for?


I am looking for a list of exception and what they get thrown for. I am using this MySQL JDBC driver, I am writing this in JRuby, so I am importing the jar.

I am catching what I need so that I can report errors for what I am doing, but I want to also be able to document what else this error handling might catch.


Solution

  • Take a look at all the exception that are present in the java.sql package. They are listed in the "Exception Summary".

    You should not depend on any MySQL JDBC specific classes.