{"action":"created","comment":{"url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments/49056963","id":49056963,"diff_hunk":"@@ -6,4 +6,6 @@ exports.Listener = require('./listener');\n exports.Sender = require('./sender');\n exports.Worker = require('./worker');\n exports.MsgHandler = require('./handlers/handler');\n+exports.HandlerResponse = require('./handlers/handlerResponse');\n exports.HandlerRouter = require('./handlers/router');\n+exports.TemporaryError = require('./temporaryError');","path":"lib/index.js","position":6,"original_position":6,"commit_id":"260fd78bb97d238a6588728e07f609e85f79bb2e","original_commit_id":"260fd78bb97d238a6588728e07f609e85f79bb2e","user":{"login":"asafdav","id":1223211,"avatar_url":"https://avatars.githubusercontent.com/u/1223211?v=3","gravatar_id":"","url":"https://api.github.com/users/asafdav","html_url":"https://github.com/asafdav","followers_url":"https://api.github.com/users/asafdav/followers","following_url":"https://api.github.com/users/asafdav/following{/other_user}","gists_url":"https://api.github.com/users/asafdav/gists{/gist_id}","starred_url":"https://api.github.com/users/asafdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafdav/subscriptions","organizations_url":"https://api.github.com/users/asafdav/orgs","repos_url":"https://api.github.com/users/asafdav/repos","events_url":"https://api.github.com/users/asafdav/events{/privacy}","received_events_url":"https://api.github.com/users/asafdav/received_events","type":"User","site_admin":false},"body":"I think it could be better to expose an \"Error\" object that contains all of the errors a handler can raise. \r\nsomething like this:\r\n```javascript\r\nexports.Error = {};\r\nexports.Error.Temporary = require('./temporaryError');\r\n```","created_at":"2016-01-07T09:53:02Z","updated_at":"2016-01-07T09:53:02Z","html_url":"https://github.com/bookmd/rabbit-task/pull/1#discussion_r49056963","pull_request_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments/49056963"},"html":{"href":"https://github.com/bookmd/rabbit-task/pull/1#discussion_r49056963"},"pull_request":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/1","id":54850714,"html_url":"https://github.com/bookmd/rabbit-task/pull/1","diff_url":"https://github.com/bookmd/rabbit-task/pull/1.diff","patch_url":"https://github.com/bookmd/rabbit-task/pull/1.patch","issue_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/1","number":1,"state":"open","locked":false,"title":"refactoring work with promises in the system","user":{"login":"Matanlb","id":6228875,"avatar_url":"https://avatars.githubusercontent.com/u/6228875?v=3","gravatar_id":"","url":"https://api.github.com/users/Matanlb","html_url":"https://github.com/Matanlb","followers_url":"https://api.github.com/users/Matanlb/followers","following_url":"https://api.github.com/users/Matanlb/following{/other_user}","gists_url":"https://api.github.com/users/Matanlb/gists{/gist_id}","starred_url":"https://api.github.com/users/Matanlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matanlb/subscriptions","organizations_url":"https://api.github.com/users/Matanlb/orgs","repos_url":"https://api.github.com/users/Matanlb/repos","events_url":"https://api.github.com/users/Matanlb/events{/privacy}","received_events_url":"https://api.github.com/users/Matanlb/received_events","type":"User","site_admin":false},"body":"add temporary error to tell apart nack and appNack","created_at":"2015-12-31T07:08:01Z","updated_at":"2016-01-07T09:53:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01e556bb3492d87c023c2df2fec3d8f0525ff244","assignee":{"login":"asafdav","id":1223211,"avatar_url":"https://avatars.githubusercontent.com/u/1223211?v=3","gravatar_id":"","url":"https://api.github.com/users/asafdav","html_url":"https://github.com/asafdav","followers_url":"https://api.github.com/users/asafdav/followers","following_url":"https://api.github.com/users/asafdav/following{/other_user}","gists_url":"https://api.github.com/users/asafdav/gists{/gist_id}","starred_url":"https://api.github.com/users/asafdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafdav/subscriptions","organizations_url":"https://api.github.com/users/asafdav/orgs","repos_url":"https://api.github.com/users/asafdav/repos","events_url":"https://api.github.com/users/asafdav/events{/privacy}","received_events_url":"https://api.github.com/users/asafdav/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/1/commits","review_comments_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/1/comments","review_comment_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/1/comments","statuses_url":"https://api.github.com/repos/bookmd/rabbit-task/statuses/260fd78bb97d238a6588728e07f609e85f79bb2e","head":{"label":"bookmd:feature-promise-refactor","ref":"feature-promise-refactor","sha":"260fd78bb97d238a6588728e07f609e85f79bb2e","user":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"repo":{"id":47721064,"name":"rabbit-task","full_name":"bookmd/rabbit-task","owner":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bookmd/rabbit-task","description":"Opinionated RabbitMQ worker","fork":false,"url":"https://api.github.com/repos/bookmd/rabbit-task","forks_url":"https://api.github.com/repos/bookmd/rabbit-task/forks","keys_url":"https://api.github.com/repos/bookmd/rabbit-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bookmd/rabbit-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bookmd/rabbit-task/teams","hooks_url":"https://api.github.com/repos/bookmd/rabbit-task/hooks","issue_events_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/events{/number}","events_url":"https://api.github.com/repos/bookmd/rabbit-task/events","assignees_url":"https://api.github.com/repos/bookmd/rabbit-task/assignees{/user}","branches_url":"https://api.github.com/repos/bookmd/rabbit-task/branches{/branch}","tags_url":"https://api.github.com/repos/bookmd/rabbit-task/tags","blobs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bookmd/rabbit-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/bookmd/rabbit-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bookmd/rabbit-task/statuses/{sha}","languages_url":"https://api.github.com/repos/bookmd/rabbit-task/languages","stargazers_url":"https://api.github.com/repos/bookmd/rabbit-task/stargazers","contributors_url":"https://api.github.com/repos/bookmd/rabbit-task/contributors","subscribers_url":"https://api.github.com/repos/bookmd/rabbit-task/subscribers","subscription_url":"https://api.github.com/repos/bookmd/rabbit-task/subscription","commits_url":"https://api.github.com/repos/bookmd/rabbit-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/bookmd/rabbit-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/bookmd/rabbit-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/bookmd/rabbit-task/contents/{+path}","compare_url":"https://api.github.com/repos/bookmd/rabbit-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bookmd/rabbit-task/merges","archive_url":"https://api.github.com/repos/bookmd/rabbit-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bookmd/rabbit-task/downloads","issues_url":"https://api.github.com/repos/bookmd/rabbit-task/issues{/number}","pulls_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls{/number}","milestones_url":"https://api.github.com/repos/bookmd/rabbit-task/milestones{/number}","notifications_url":"https://api.github.com/repos/bookmd/rabbit-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bookmd/rabbit-task/labels{/name}","releases_url":"https://api.github.com/repos/bookmd/rabbit-task/releases{/id}","created_at":"2015-12-09T21:46:57Z","updated_at":"2015-12-14T16:55:04Z","pushed_at":"2016-01-06T15:52:13Z","git_url":"git://github.com/bookmd/rabbit-task.git","ssh_url":"git@github.com:bookmd/rabbit-task.git","clone_url":"https://github.com/bookmd/rabbit-task.git","svn_url":"https://github.com/bookmd/rabbit-task","homepage":"","size":16,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"bookmd:master","ref":"master","sha":"6999c65177953e2aabb818392df5a6f6c854e42c","user":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"repo":{"id":47721064,"name":"rabbit-task","full_name":"bookmd/rabbit-task","owner":{"login":"bookmd","id":11821632,"avatar_url":"https://avatars.githubusercontent.com/u/11821632?v=3","gravatar_id":"","url":"https://api.github.com/users/bookmd","html_url":"https://github.com/bookmd","followers_url":"https://api.github.com/users/bookmd/followers","following_url":"https://api.github.com/users/bookmd/following{/other_user}","gists_url":"https://api.github.com/users/bookmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bookmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookmd/subscriptions","organizations_url":"https://api.github.com/users/bookmd/orgs","repos_url":"https://api.github.com/users/bookmd/repos","events_url":"https://api.github.com/users/bookmd/events{/privacy}","received_events_url":"https://api.github.com/users/bookmd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bookmd/rabbit-task","description":"Opinionated RabbitMQ worker","fork":false,"url":"https://api.github.com/repos/bookmd/rabbit-task","forks_url":"https://api.github.com/repos/bookmd/rabbit-task/forks","keys_url":"https://api.github.com/repos/bookmd/rabbit-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bookmd/rabbit-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bookmd/rabbit-task/teams","hooks_url":"https://api.github.com/repos/bookmd/rabbit-task/hooks","issue_events_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/events{/number}","events_url":"https://api.github.com/repos/bookmd/rabbit-task/events","assignees_url":"https://api.github.com/repos/bookmd/rabbit-task/assignees{/user}","branches_url":"https://api.github.com/repos/bookmd/rabbit-task/branches{/branch}","tags_url":"https://api.github.com/repos/bookmd/rabbit-task/tags","blobs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bookmd/rabbit-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bookmd/rabbit-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/bookmd/rabbit-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bookmd/rabbit-task/statuses/{sha}","languages_url":"https://api.github.com/repos/bookmd/rabbit-task/languages","stargazers_url":"https://api.github.com/repos/bookmd/rabbit-task/stargazers","contributors_url":"https://api.github.com/repos/bookmd/rabbit-task/contributors","subscribers_url":"https://api.github.com/repos/bookmd/rabbit-task/subscribers","subscription_url":"https://api.github.com/repos/bookmd/rabbit-task/subscription","commits_url":"https://api.github.com/repos/bookmd/rabbit-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/bookmd/rabbit-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/bookmd/rabbit-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/bookmd/rabbit-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/bookmd/rabbit-task/contents/{+path}","compare_url":"https://api.github.com/repos/bookmd/rabbit-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bookmd/rabbit-task/merges","archive_url":"https://api.github.com/repos/bookmd/rabbit-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bookmd/rabbit-task/downloads","issues_url":"https://api.github.com/repos/bookmd/rabbit-task/issues{/number}","pulls_url":"https://api.github.com/repos/bookmd/rabbit-task/pulls{/number}","milestones_url":"https://api.github.com/repos/bookmd/rabbit-task/milestones{/number}","notifications_url":"https://api.github.com/repos/bookmd/rabbit-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bookmd/rabbit-task/labels{/name}","releases_url":"https://api.github.com/repos/bookmd/rabbit-task/releases{/id}","created_at":"2015-12-09T21:46:57Z","updated_at":"2015-12-14T16:55:04Z","pushed_at":"2016-01-06T15:52:13Z","git_url":"git://github.com/bookmd/rabbit-task.git","ssh_url":"git@github.com:bookmd/rabbit-task.git","clone_url":"https://github.com/bookmd/rabbit-task.git","svn_url":"https://github.com/bookmd/rabbit-task","homepage":"","size":16,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/bookmd/rabbit-task/pulls/1"},"html":{"href":"https://github.com/bookmd/rabbit-task/pull/1"},"issue":{"href":"https://api.github.com/repos/bookmd/rabbit-task/issues/1"},"comments":{"href":"https://api.github.com/repos/bookmd/rabbit-task/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bookmd/rabbit-task/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/bookmd/rabbit-task/statuses/260fd78bb97d238a6588728e07f609e85f79bb2e"}}}}