{"action":"created","issue":{"url":"https://api.github.com/repos/rocketmq/rocketmq-console/issues/13","repository_url":"https://api.github.com/repos/rocketmq/rocketmq-console","labels_url":"https://api.github.com/repos/rocketmq/rocketmq-console/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/rocketmq/rocketmq-console/issues/13/comments","events_url":"https://api.github.com/repos/rocketmq/rocketmq-console/issues/13/events","html_url":"https://github.com/rocketmq/rocketmq-console/issues/13","id":169883461,"number":13,"title":"代码中抛出异常类型的问题","user":{"login":"jiangll007","id":11405706,"avatar_url":"https://avatars.githubusercontent.com/u/11405706?v=3","gravatar_id":"","url":"https://api.github.com/users/jiangll007","html_url":"https://github.com/jiangll007","followers_url":"https://api.github.com/users/jiangll007/followers","following_url":"https://api.github.com/users/jiangll007/following{/other_user}","gists_url":"https://api.github.com/users/jiangll007/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangll007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangll007/subscriptions","organizations_url":"https://api.github.com/users/jiangll007/orgs","repos_url":"https://api.github.com/users/jiangll007/repos","events_url":"https://api.github.com/users/jiangll007/events{/privacy}","received_events_url":"https://api.github.com/users/jiangll007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-08T09:48:10Z","updated_at":"2016-08-09T07:15:13Z","closed_at":null,"body":"你好，down下来代码后，本地代码检查软件会检查出工程中的service类不少方法抛出的异常过大的问题。比如clusterService.list 抛出了 Throwable. 从实现来看，寻根追底到rocketmq的实现，rocketmq的方法抛出的异常也就是Exception级别的 。为什么封装一层后确抛出了Throwable级别的异常。因为这个会导致“Catching either Throwable or Error will also catch OutOfMemoryError and InternalError, from which an application should not attempt to recover”"},"comment":{"url":"https://api.github.com/repos/rocketmq/rocketmq-console/issues/comments/238472825","html_url":"https://github.com/rocketmq/rocketmq-console/issues/13#issuecomment-238472825","issue_url":"https://api.github.com/repos/rocketmq/rocketmq-console/issues/13","id":238472825,"user":{"login":"jiangll007","id":11405706,"avatar_url":"https://avatars.githubusercontent.com/u/11405706?v=3","gravatar_id":"","url":"https://api.github.com/users/jiangll007","html_url":"https://github.com/jiangll007","followers_url":"https://api.github.com/users/jiangll007/followers","following_url":"https://api.github.com/users/jiangll007/following{/other_user}","gists_url":"https://api.github.com/users/jiangll007/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangll007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangll007/subscriptions","organizations_url":"https://api.github.com/users/jiangll007/orgs","repos_url":"https://api.github.com/users/jiangll007/repos","events_url":"https://api.github.com/users/jiangll007/events{/privacy}","received_events_url":"https://api.github.com/users/jiangll007/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T07:15:13Z","updated_at":"2016-08-09T07:15:13Z","body":"搜了下这个问题 ，也没有查到抛出更高级别的异常有什么特别不好的地方。 一般来说 如果是想抓取系统级别的异常（Error），那么证明是开发人员想自己处理异常。"}}
{"actor":{"display_login":"jiangll007"}}