{"action":"closed","issue":{"url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/55","repository_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc","labels_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/55/comments","events_url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/issues/55/events","html_url":"https://github.com/davidmoten/rxjava-jdbc/issues/55","id":147059739,"number":55,"title":"Exception handling","user":{"login":"wsalembi","id":168668,"avatar_url":"https://avatars.githubusercontent.com/u/168668?v=3","gravatar_id":"","url":"https://api.github.com/users/wsalembi","html_url":"https://github.com/wsalembi","followers_url":"https://api.github.com/users/wsalembi/followers","following_url":"https://api.github.com/users/wsalembi/following{/other_user}","gists_url":"https://api.github.com/users/wsalembi/gists{/gist_id}","starred_url":"https://api.github.com/users/wsalembi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsalembi/subscriptions","organizations_url":"https://api.github.com/users/wsalembi/orgs","repos_url":"https://api.github.com/users/wsalembi/repos","events_url":"https://api.github.com/users/wsalembi/events{/privacy}","received_events_url":"https://api.github.com/users/wsalembi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/davidmoten/rxjava-jdbc/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-08T22:55:56Z","updated_at":"2016-05-20T01:53:11Z","closed_at":"2016-05-20T01:53:11Z","body":"I think something's wrong with the exception handling. This code does not generate any errors, it returns an empty Observable. `doOnError` is never called.\r\n\r\n        db.select(\"select name, score from person order by name\")\r\n                .getAs(Person.class)  // mistakenly replaced autoMap by getAs\r\n                .doOnError(Throwable::printStackTrace)\r\n                .forEach(System.out::println);\r\n\r\nIn reality a ClassCastException occurs (String.class cannot be cast to Person.class), but this programming is completely hidden to the developer. This makes using and debugging this library very hard.\r\n\r\n"}}
{"actor":{"display_login":"davidmoten"}}