{"action":"created","comment":{"url":"https://api.github.com/repos/hhru/hh-common-errors/pulls/comments/58868980","id":58868980,"diff_hunk":"@@ -0,0 +1,34 @@\n+package ru.hh.errors.common;","path":"src/main/java/ru/hh/errors/common/CustomWebApplicationException.java","position":1,"original_position":1,"commit_id":"ea0042b3346829f7c887bc15236632b9bd259743","original_commit_id":"73d07f8c03d4a9f441473730d530d80e4cd1bf73","user":{"login":"sergey-podunov","id":2589655,"avatar_url":"https://avatars.githubusercontent.com/u/2589655?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-podunov","html_url":"https://github.com/sergey-podunov","followers_url":"https://api.github.com/users/sergey-podunov/followers","following_url":"https://api.github.com/users/sergey-podunov/following{/other_user}","gists_url":"https://api.github.com/users/sergey-podunov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-podunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-podunov/subscriptions","organizations_url":"https://api.github.com/users/sergey-podunov/orgs","repos_url":"https://api.github.com/users/sergey-podunov/repos","events_url":"https://api.github.com/users/sergey-podunov/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-podunov/received_events","type":"User","site_admin":false},"body":"Проблема MoreErrors, на мой взгляд,  в том что работа с ними выглядит как builder или chain call но на самом деле им не является. Каждый метод создает новый объект, затем еще и еще - в итоге непонятно что, собственно, происходит с объектом, поступившим на вход и в какой момент. Логика обработки размазана по этим самым объектам.\r\n\r\nВторая проблема (возможно, исходящая из первой) - без примера непонятно какие методы в какой последовательности вызывать, и как закончить цепочку. \r\n\r\nВ итоге плюешь на попытки разобраться как это работает и пишешь ``rws -> check(rws, \"Something went wrong\").THROW_INTERNAL_SERVER_ERROR.onAnyError()``\r\nХотя может быть ты обрабатываешь сообщение из Rabbit, тебе нужен не WebApplicationException а что-то специфичное, и можно было бы улучшить MoreErrors для такого варианта использования.","created_at":"2016-04-07T13:19:19Z","updated_at":"2016-04-07T13:19:19Z","html_url":"https://github.com/hhru/hh-common-errors/pull/1#discussion_r58868980","pull_request_url":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/hhru/hh-common-errors/pulls/comments/58868980"},"html":{"href":"https://github.com/hhru/hh-common-errors/pull/1#discussion_r58868980"},"pull_request":{"href":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1","id":65471942,"html_url":"https://github.com/hhru/hh-common-errors/pull/1","diff_url":"https://github.com/hhru/hh-common-errors/pull/1.diff","patch_url":"https://github.com/hhru/hh-common-errors/pull/1.patch","issue_url":"https://api.github.com/repos/hhru/hh-common-errors/issues/1","number":1,"state":"open","locked":false,"title":"HH-58935 Add DTOs and error factory","user":{"login":"kincajou","id":381887,"avatar_url":"https://avatars.githubusercontent.com/u/381887?v=3","gravatar_id":"","url":"https://api.github.com/users/kincajou","html_url":"https://github.com/kincajou","followers_url":"https://api.github.com/users/kincajou/followers","following_url":"https://api.github.com/users/kincajou/following{/other_user}","gists_url":"https://api.github.com/users/kincajou/gists{/gist_id}","starred_url":"https://api.github.com/users/kincajou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kincajou/subscriptions","organizations_url":"https://api.github.com/users/kincajou/orgs","repos_url":"https://api.github.com/users/kincajou/repos","events_url":"https://api.github.com/users/kincajou/events{/privacy}","received_events_url":"https://api.github.com/users/kincajou/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-06T14:05:50Z","updated_at":"2016-04-07T13:19:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f2c5b709cf756d3a54838dd91d0cbbcc7ec1230","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hhru/hh-common-errors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hhru/hh-common-errors/issues/1/comments","statuses_url":"https://api.github.com/repos/hhru/hh-common-errors/statuses/ea0042b3346829f7c887bc15236632b9bd259743","head":{"label":"hhru:HH-58935","ref":"HH-58935","sha":"ea0042b3346829f7c887bc15236632b9bd259743","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":55591286,"name":"hh-common-errors","full_name":"hhru/hh-common-errors","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/hh-common-errors","description":"","fork":false,"url":"https://api.github.com/repos/hhru/hh-common-errors","forks_url":"https://api.github.com/repos/hhru/hh-common-errors/forks","keys_url":"https://api.github.com/repos/hhru/hh-common-errors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/hh-common-errors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/hh-common-errors/teams","hooks_url":"https://api.github.com/repos/hhru/hh-common-errors/hooks","issue_events_url":"https://api.github.com/repos/hhru/hh-common-errors/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/hh-common-errors/events","assignees_url":"https://api.github.com/repos/hhru/hh-common-errors/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/hh-common-errors/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/hh-common-errors/tags","blobs_url":"https://api.github.com/repos/hhru/hh-common-errors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/hh-common-errors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/hh-common-errors/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/hh-common-errors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/hh-common-errors/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/hh-common-errors/languages","stargazers_url":"https://api.github.com/repos/hhru/hh-common-errors/stargazers","contributors_url":"https://api.github.com/repos/hhru/hh-common-errors/contributors","subscribers_url":"https://api.github.com/repos/hhru/hh-common-errors/subscribers","subscription_url":"https://api.github.com/repos/hhru/hh-common-errors/subscription","commits_url":"https://api.github.com/repos/hhru/hh-common-errors/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/hh-common-errors/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/hh-common-errors/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/hh-common-errors/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/hh-common-errors/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/hh-common-errors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/hh-common-errors/merges","archive_url":"https://api.github.com/repos/hhru/hh-common-errors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/hh-common-errors/downloads","issues_url":"https://api.github.com/repos/hhru/hh-common-errors/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/hh-common-errors/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/hh-common-errors/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/hh-common-errors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/hh-common-errors/labels{/name}","releases_url":"https://api.github.com/repos/hhru/hh-common-errors/releases{/id}","deployments_url":"https://api.github.com/repos/hhru/hh-common-errors/deployments","created_at":"2016-04-06T09:03:51Z","updated_at":"2016-04-06T09:03:51Z","pushed_at":"2016-04-07T13:02:28Z","git_url":"git://github.com/hhru/hh-common-errors.git","ssh_url":"git@github.com:hhru/hh-common-errors.git","clone_url":"https://github.com/hhru/hh-common-errors.git","svn_url":"https://github.com/hhru/hh-common-errors","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hhru:master","ref":"master","sha":"8042234452326e883ea4ebd035a6889861c1522d","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":55591286,"name":"hh-common-errors","full_name":"hhru/hh-common-errors","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars.githubusercontent.com/u/152753?v=3","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/hh-common-errors","description":"","fork":false,"url":"https://api.github.com/repos/hhru/hh-common-errors","forks_url":"https://api.github.com/repos/hhru/hh-common-errors/forks","keys_url":"https://api.github.com/repos/hhru/hh-common-errors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/hh-common-errors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/hh-common-errors/teams","hooks_url":"https://api.github.com/repos/hhru/hh-common-errors/hooks","issue_events_url":"https://api.github.com/repos/hhru/hh-common-errors/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/hh-common-errors/events","assignees_url":"https://api.github.com/repos/hhru/hh-common-errors/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/hh-common-errors/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/hh-common-errors/tags","blobs_url":"https://api.github.com/repos/hhru/hh-common-errors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/hh-common-errors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/hh-common-errors/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/hh-common-errors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/hh-common-errors/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/hh-common-errors/languages","stargazers_url":"https://api.github.com/repos/hhru/hh-common-errors/stargazers","contributors_url":"https://api.github.com/repos/hhru/hh-common-errors/contributors","subscribers_url":"https://api.github.com/repos/hhru/hh-common-errors/subscribers","subscription_url":"https://api.github.com/repos/hhru/hh-common-errors/subscription","commits_url":"https://api.github.com/repos/hhru/hh-common-errors/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/hh-common-errors/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/hh-common-errors/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/hh-common-errors/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/hh-common-errors/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/hh-common-errors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/hh-common-errors/merges","archive_url":"https://api.github.com/repos/hhru/hh-common-errors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/hh-common-errors/downloads","issues_url":"https://api.github.com/repos/hhru/hh-common-errors/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/hh-common-errors/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/hh-common-errors/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/hh-common-errors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/hh-common-errors/labels{/name}","releases_url":"https://api.github.com/repos/hhru/hh-common-errors/releases{/id}","deployments_url":"https://api.github.com/repos/hhru/hh-common-errors/deployments","created_at":"2016-04-06T09:03:51Z","updated_at":"2016-04-06T09:03:51Z","pushed_at":"2016-04-07T13:02:28Z","git_url":"git://github.com/hhru/hh-common-errors.git","ssh_url":"git@github.com:hhru/hh-common-errors.git","clone_url":"https://github.com/hhru/hh-common-errors.git","svn_url":"https://github.com/hhru/hh-common-errors","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1"},"html":{"href":"https://github.com/hhru/hh-common-errors/pull/1"},"issue":{"href":"https://api.github.com/repos/hhru/hh-common-errors/issues/1"},"comments":{"href":"https://api.github.com/repos/hhru/hh-common-errors/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hhru/hh-common-errors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hhru/hh-common-errors/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hhru/hh-common-errors/statuses/ea0042b3346829f7c887bc15236632b9bd259743"}}}}