{"action":"closed","issue":{"url":"https://api.github.com/repos/EvidentSolutions/dalesbred/issues/29","repository_url":"https://api.github.com/repos/EvidentSolutions/dalesbred","labels_url":"https://api.github.com/repos/EvidentSolutions/dalesbred/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/EvidentSolutions/dalesbred/issues/29/comments","events_url":"https://api.github.com/repos/EvidentSolutions/dalesbred/issues/29/events","html_url":"https://github.com/EvidentSolutions/dalesbred/issues/29","id":171004467,"number":29,"title":"Exceptions","user":{"login":"Gronis","id":5390421,"avatar_url":"https://avatars.githubusercontent.com/u/5390421?v=3","gravatar_id":"","url":"https://api.github.com/users/Gronis","html_url":"https://github.com/Gronis","followers_url":"https://api.github.com/users/Gronis/followers","following_url":"https://api.github.com/users/Gronis/following{/other_user}","gists_url":"https://api.github.com/users/Gronis/gists{/gist_id}","starred_url":"https://api.github.com/users/Gronis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gronis/subscriptions","organizations_url":"https://api.github.com/users/Gronis/orgs","repos_url":"https://api.github.com/users/Gronis/repos","events_url":"https://api.github.com/users/Gronis/events{/privacy}","received_events_url":"https://api.github.com/users/Gronis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-13T11:11:07Z","updated_at":"2016-08-13T14:20:47Z","closed_at":"2016-08-13T14:20:47Z","body":"Hi nice lib you have here!\r\n\r\nI have a question regarding exceptions. If I example do this:\r\n\r\n```java\r\ntry {\r\n    ResultTable rt = db.findTable(\"select * from SomeTable\");\r\n} catch (Exception e){\r\n    db.update(\"create table SomeTable (field int)\");\r\n}\r\n```\r\n\r\nAn exception is still printed to the console (see print below). Somehow my catch does not \"catch\" the exception. However the table is still created so it somehow catches the exception. My question is that why is the exception still printed to my console of the exception is handled?\r\n\r\nPrint:\r\n```\r\ncom.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'db.sometable' doesn't exist\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:408)\r\n\tat com.mysql.jdbc.Util.handleNewInstance(Util.java:404)\r\n\tat com.mysql.jdbc.Util.getInstance(Util.java:387)\r\n\tat com.mysql.jdbc.SQLError.createSQLException(SQLError.java:942)\r\n\tat com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)\r\n\tat com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)\r\n\tat com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2526)\r\n\tat com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2673)\r\n\tat com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2549)\r\n\tat com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)\r\n\tat com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)\r\n\tat org.dalesbred.Database.lambda$executeQuery$1(Database.java:287)\r\n\tat org.dalesbred.Database$$Lambda$46/1734853116.execute(Unknown Source)\r\n\tat org.dalesbred.transaction.DefaultTransaction.execute(DefaultTransaction.java:53)\r\n\tat org.dalesbred.transaction.DefaultTransactionManager.withNewTransaction(DefaultTransactionManager.java:61)\r\n\tat org.dalesbred.transaction.AbstractTransactionManager.withTransaction(AbstractTransactionManager.java:62)\r\n\tat org.dalesbred.Database.withTransaction(Database.java:203)\r\n\tat org.dalesbred.Database.withTransaction(Database.java:192)\r\n\tat org.dalesbred.Database.withTransaction(Database.java:164)\r\n\tat org.dalesbred.Database.withCurrentTransaction(Database.java:266)\r\n\tat org.dalesbred.Database.executeQuery(Database.java:280)\r\n\tat org.dalesbred.Database.findTable(Database.java:542)\r\n\tat org.dalesbred.Database.findTable(Database.java:550)\r\n```\r\n\r\nI'm using mysql (as you can tell by the exception log)"}}
{"actor":{"display_login":"Gronis"}}