{"action":"created","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1831","repository_url":"https://api.github.com/repos/dropwizard/dropwizard","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1831/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1831/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1831/events","html_url":"https://github.com/dropwizard/dropwizard/issues/1831","id":190038074,"number":1831,"title":"ViewMessageBodyWriter eats exceptions, preventing the installed ExceptionMapper from mapping the exception","user":{"login":"dren-dk","id":391959,"avatar_url":"https://avatars.githubusercontent.com/u/391959?v=3","gravatar_id":"","url":"https://api.github.com/users/dren-dk","html_url":"https://github.com/dren-dk","followers_url":"https://api.github.com/users/dren-dk/followers","following_url":"https://api.github.com/users/dren-dk/following{/other_user}","gists_url":"https://api.github.com/users/dren-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/dren-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dren-dk/subscriptions","organizations_url":"https://api.github.com/users/dren-dk/orgs","repos_url":"https://api.github.com/users/dren-dk/repos","events_url":"https://api.github.com/users/dren-dk/events{/privacy}","received_events_url":"https://api.github.com/users/dren-dk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T12:48:28Z","updated_at":"2016-11-17T14:17:47Z","closed_at":null,"body":"When an exception happens outside the view code, it can be mapped to something reasonable by the ExceptionMapper.\r\n\r\nWhen an exception happens when rendering a view prior to prior to eaea76a37e9a5ac667b99cd81c46353034e8473d all exceptions, except FileNotFoundException where thown out of the writeTo method and thus available for handling by the ExceptionMapper.\r\n\r\nAfter the change to ViewMessageBodyWriter, all Exceptions are eaten and in stead a WebApplicationException is thrown without the original exception and with content, so the ExceptionMapper is prevented from providing customized errors.\r\n\r\nWould it be possible to make this behavior configurable, so the original exception is in stead wrapped in an IOException and thrown out of writeTo method?\r\n\r\nOr would it be better to always throw the wrapped exception and let an ExceptionMapper handle it?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/comments/261257389","html_url":"https://github.com/dropwizard/dropwizard/issues/1831#issuecomment-261257389","issue_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1831","id":261257389,"user":{"login":"nickbabcock","id":2106129,"avatar_url":"https://avatars.githubusercontent.com/u/2106129?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbabcock","html_url":"https://github.com/nickbabcock","followers_url":"https://api.github.com/users/nickbabcock/followers","following_url":"https://api.github.com/users/nickbabcock/following{/other_user}","gists_url":"https://api.github.com/users/nickbabcock/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbabcock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbabcock/subscriptions","organizations_url":"https://api.github.com/users/nickbabcock/orgs","repos_url":"https://api.github.com/users/nickbabcock/repos","events_url":"https://api.github.com/users/nickbabcock/events{/privacy}","received_events_url":"https://api.github.com/users/nickbabcock/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T14:17:47Z","updated_at":"2016-11-17T14:17:47Z","body":"Does #1820 address any of your concerns?"}}
{"actor":{"display_login":"nickbabcock"}}