Code example for SQLException

Methods: getMessagegetErrorCodegetSQLState