{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2168","repository_url":"https://api.github.com/repos/FasterXML/jackson-databind","labels_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2168/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2168/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2168/events","html_url":"https://github.com/FasterXML/jackson-databind/issues/2168","id":373935262,"node_id":"MDU6SXNzdWUzNzM5MzUyNjI=","number":2168,"title":"DeserializationContest.parseDate() drops original exception.","user":{"login":"joaoe","id":461983,"node_id":"MDQ6VXNlcjQ2MTk4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/461983?v=4","gravatar_id":"","url":"https://api.github.com/users/joaoe","html_url":"https://github.com/joaoe","followers_url":"https://api.github.com/users/joaoe/followers","following_url":"https://api.github.com/users/joaoe/following{/other_user}","gists_url":"https://api.github.com/users/joaoe/gists{/gist_id}","starred_url":"https://api.github.com/users/joaoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaoe/subscriptions","organizations_url":"https://api.github.com/users/joaoe/orgs","repos_url":"https://api.github.com/users/joaoe/repos","events_url":"https://api.github.com/users/joaoe/events{/privacy}","received_events_url":"https://api.github.com/users/joaoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-25T13:00:21Z","updated_at":"2018-10-26T02:16:51Z","closed_at":null,"author_association":"NONE","body":"**The problem**\r\n\r\nI have an `ObjectMapper` configured to do strict ISO parsing of Dates.\r\n\r\nWhen sending a broken value, I get an exception with the following message\r\n```\r\nCannot deserialize value of type `java.util.Date` from String \"x\": not a valid representation (error: Failed to parse Date value 'x': Cannot parse date \"x\": while it seems to fit format 'yyyy-MM-dd', parsing fails (leniency? null))\r\n at [Source: (PushbackInputStream); line: 1, column: 12] (through reference chain: com.blah.TestCase.TestPayload[\"isoDate\"])\r\n```\r\nThe original `ParseException` is gone.\r\n\r\nI want to ideally access the original exceptino to give the most stripped down message possible in the HTTP so the user can fix the issue in his app. \r\n\r\n**The location** \r\nhttps://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/DeserializationContext.java#L827\r\n\r\n**Expected**\r\nIdeally, the original `ParseException` should be preserved when rethrowing it as `IllegalArgumentException`. So change to\r\n```\r\nthrow new IllegalArgumentException(String.format(...), e);\r\n```\r\n\r\nThank you !"},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/comments/433263923","html_url":"https://github.com/FasterXML/jackson-databind/issues/2168#issuecomment-433263923","issue_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2168","id":433263923,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzI2MzkyMw==","user":{"login":"cowtowncoder","id":55065,"node_id":"MDQ6VXNlcjU1MDY1","avatar_url":"https://avatars0.githubusercontent.com/u/55065?v=4","gravatar_id":"","url":"https://api.github.com/users/cowtowncoder","html_url":"https://github.com/cowtowncoder","followers_url":"https://api.github.com/users/cowtowncoder/followers","following_url":"https://api.github.com/users/cowtowncoder/following{/other_user}","gists_url":"https://api.github.com/users/cowtowncoder/gists{/gist_id}","starred_url":"https://api.github.com/users/cowtowncoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowtowncoder/subscriptions","organizations_url":"https://api.github.com/users/cowtowncoder/orgs","repos_url":"https://api.github.com/users/cowtowncoder/repos","events_url":"https://api.github.com/users/cowtowncoder/events{/privacy}","received_events_url":"https://api.github.com/users/cowtowncoder/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T02:16:51Z","updated_at":"2018-10-26T02:16:51Z","author_association":"MEMBER","body":"I think I disagree here: lower-level source exception is more of an implementation detail and seems to provide no useful information to caller; and call stack should be preserved all the way up.\r\n\r\nSo what information do you think should be preserved that is not available from included exception message?\r\n\r\n"}}
{"actor":{"display_login":"cowtowncoder"}}