{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2744","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2744/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2744/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2744/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/2744","id":300564807,"number":2744,"title":"[Question]The different between two ways of wrapping checked exception in Zuul is confusing?","user":{"login":"jadetang","id":6525486,"avatar_url":"https://avatars0.githubusercontent.com/u/6525486?v=4","gravatar_id":"","url":"https://api.github.com/users/jadetang","html_url":"https://github.com/jadetang","followers_url":"https://api.github.com/users/jadetang/followers","following_url":"https://api.github.com/users/jadetang/following{/other_user}","gists_url":"https://api.github.com/users/jadetang/gists{/gist_id}","starred_url":"https://api.github.com/users/jadetang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadetang/subscriptions","organizations_url":"https://api.github.com/users/jadetang/orgs","repos_url":"https://api.github.com/users/jadetang/repos","events_url":"https://api.github.com/users/jadetang/events{/privacy}","received_events_url":"https://api.github.com/users/jadetang/received_events","type":"User","site_admin":false},"labels":[{"id":113315776,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-27T10:05:24Z","updated_at":"2018-02-28T21:26:39Z","closed_at":"2018-02-28T21:26:39Z","author_association":"NONE","body":"Hi, I noticed that there are 2 ways of  wrapping checked exception in Zuul, in `SimpleHostRoutingFilter`\r\nis\r\n \r\n`\r\ncatch (Exception ex) {\r\n\t\t\tthrow new ZuulRuntimeException(ex);\r\n\t\t}\r\n`\r\n\r\nin `SendErrorFilter` is\r\n\r\n`\r\ncatch (Exception ex) {\r\n\t\t\tReflectionUtils.rethrowRuntimeException(ex);\r\n\t\t}\r\n`\r\n\r\n\r\n  Which way should I use if I need wrap a checked exception in my filter? "},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/369388592","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/2744#issuecomment-369388592","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2744","id":369388592,"user":{"login":"spencergibb","id":594085,"avatar_url":"https://avatars3.githubusercontent.com/u/594085?v=4","gravatar_id":"","url":"https://api.github.com/users/spencergibb","html_url":"https://github.com/spencergibb","followers_url":"https://api.github.com/users/spencergibb/followers","following_url":"https://api.github.com/users/spencergibb/following{/other_user}","gists_url":"https://api.github.com/users/spencergibb/gists{/gist_id}","starred_url":"https://api.github.com/users/spencergibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencergibb/subscriptions","organizations_url":"https://api.github.com/users/spencergibb/orgs","repos_url":"https://api.github.com/users/spencergibb/repos","events_url":"https://api.github.com/users/spencergibb/events{/privacy}","received_events_url":"https://api.github.com/users/spencergibb/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T21:26:39Z","updated_at":"2018-02-28T21:26:39Z","author_association":"MEMBER","body":"Use `ZuulRuntimeException` since you can set the appropriate http status code. `ZuulRuntimeException` has special meaning in  `SendErrorFilter`. Since it doesn't matter outside of `SendErrorFilter` any runtime exception will do in that particular case."}}
{"actor":{"display_login":"spencergibb"}}