{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/PRX/amara/pulls/4","id":38554756,"html_url":"https://github.com/PRX/amara/pull/4","diff_url":"https://github.com/PRX/amara/pull/4.diff","patch_url":"https://github.com/PRX/amara/pull/4.patch","issue_url":"https://api.github.com/repos/PRX/amara/issues/4","number":4,"state":"open","locked":false,"title":"Raise library-specific errors for easier handling by applications.","user":{"login":"jwarchol","id":2336,"avatar_url":"https://avatars.githubusercontent.com/u/2336?v=3","gravatar_id":"","url":"https://api.github.com/users/jwarchol","html_url":"https://github.com/jwarchol","followers_url":"https://api.github.com/users/jwarchol/followers","following_url":"https://api.github.com/users/jwarchol/following{/other_user}","gists_url":"https://api.github.com/users/jwarchol/gists{/gist_id}","starred_url":"https://api.github.com/users/jwarchol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwarchol/subscriptions","organizations_url":"https://api.github.com/users/jwarchol/orgs","repos_url":"https://api.github.com/users/jwarchol/repos","events_url":"https://api.github.com/users/jwarchol/events{/privacy}","received_events_url":"https://api.github.com/users/jwarchol/received_events","type":"User","site_admin":false},"body":"I'm proposing instead of raising a bare RuntimeError, raise specific errors for this library. This allows applications to catch, for example, a 404 error from Amara and handle it specifically. What do you think?","created_at":"2015-06-25T14:42:48Z","updated_at":"2015-06-25T14:42:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PRX/amara/pulls/4/commits","review_comments_url":"https://api.github.com/repos/PRX/amara/pulls/4/comments","review_comment_url":"https://api.github.com/repos/PRX/amara/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/amara/issues/4/comments","statuses_url":"https://api.github.com/repos/PRX/amara/statuses/31ae373aaa746fcf69e37e8a38c5b049bfb7df84","head":{"label":"jwarchol:master","ref":"master","sha":"31ae373aaa746fcf69e37e8a38c5b049bfb7df84","user":{"login":"jwarchol","id":2336,"avatar_url":"https://avatars.githubusercontent.com/u/2336?v=3","gravatar_id":"","url":"https://api.github.com/users/jwarchol","html_url":"https://github.com/jwarchol","followers_url":"https://api.github.com/users/jwarchol/followers","following_url":"https://api.github.com/users/jwarchol/following{/other_user}","gists_url":"https://api.github.com/users/jwarchol/gists{/gist_id}","starred_url":"https://api.github.com/users/jwarchol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwarchol/subscriptions","organizations_url":"https://api.github.com/users/jwarchol/orgs","repos_url":"https://api.github.com/users/jwarchol/repos","events_url":"https://api.github.com/users/jwarchol/events{/privacy}","received_events_url":"https://api.github.com/users/jwarchol/received_events","type":"User","site_admin":false},"repo":{"id":37862534,"name":"amara","full_name":"jwarchol/amara","owner":{"login":"jwarchol","id":2336,"avatar_url":"https://avatars.githubusercontent.com/u/2336?v=3","gravatar_id":"","url":"https://api.github.com/users/jwarchol","html_url":"https://github.com/jwarchol","followers_url":"https://api.github.com/users/jwarchol/followers","following_url":"https://api.github.com/users/jwarchol/following{/other_user}","gists_url":"https://api.github.com/users/jwarchol/gists{/gist_id}","starred_url":"https://api.github.com/users/jwarchol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwarchol/subscriptions","organizations_url":"https://api.github.com/users/jwarchol/orgs","repos_url":"https://api.github.com/users/jwarchol/repos","events_url":"https://api.github.com/users/jwarchol/events{/privacy}","received_events_url":"https://api.github.com/users/jwarchol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwarchol/amara","description":"Ruby Gem to access the Amara API","fork":true,"url":"https://api.github.com/repos/jwarchol/amara","forks_url":"https://api.github.com/repos/jwarchol/amara/forks","keys_url":"https://api.github.com/repos/jwarchol/amara/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwarchol/amara/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwarchol/amara/teams","hooks_url":"https://api.github.com/repos/jwarchol/amara/hooks","issue_events_url":"https://api.github.com/repos/jwarchol/amara/issues/events{/number}","events_url":"https://api.github.com/repos/jwarchol/amara/events","assignees_url":"https://api.github.com/repos/jwarchol/amara/assignees{/user}","branches_url":"https://api.github.com/repos/jwarchol/amara/branches{/branch}","tags_url":"https://api.github.com/repos/jwarchol/amara/tags","blobs_url":"https://api.github.com/repos/jwarchol/amara/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwarchol/amara/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwarchol/amara/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwarchol/amara/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwarchol/amara/statuses/{sha}","languages_url":"https://api.github.com/repos/jwarchol/amara/languages","stargazers_url":"https://api.github.com/repos/jwarchol/amara/stargazers","contributors_url":"https://api.github.com/repos/jwarchol/amara/contributors","subscribers_url":"https://api.github.com/repos/jwarchol/amara/subscribers","subscription_url":"https://api.github.com/repos/jwarchol/amara/subscription","commits_url":"https://api.github.com/repos/jwarchol/amara/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwarchol/amara/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwarchol/amara/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwarchol/amara/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwarchol/amara/contents/{+path}","compare_url":"https://api.github.com/repos/jwarchol/amara/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwarchol/amara/merges","archive_url":"https://api.github.com/repos/jwarchol/amara/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwarchol/amara/downloads","issues_url":"https://api.github.com/repos/jwarchol/amara/issues{/number}","pulls_url":"https://api.github.com/repos/jwarchol/amara/pulls{/number}","milestones_url":"https://api.github.com/repos/jwarchol/amara/milestones{/number}","notifications_url":"https://api.github.com/repos/jwarchol/amara/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwarchol/amara/labels{/name}","releases_url":"https://api.github.com/repos/jwarchol/amara/releases{/id}","created_at":"2015-06-22T15:11:19Z","updated_at":"2015-06-22T15:11:20Z","pushed_at":"2015-06-25T14:40:20Z","git_url":"git://github.com/jwarchol/amara.git","ssh_url":"git@github.com:jwarchol/amara.git","clone_url":"https://github.com/jwarchol/amara.git","svn_url":"https://github.com/jwarchol/amara","homepage":null,"size":114,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"31dd56667688eb64fbbf0ccb1a5e2882a20929f4","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":12061558,"name":"amara","full_name":"PRX/amara","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/amara","description":"Ruby Gem to access the Amara API","fork":false,"url":"https://api.github.com/repos/PRX/amara","forks_url":"https://api.github.com/repos/PRX/amara/forks","keys_url":"https://api.github.com/repos/PRX/amara/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/amara/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/amara/teams","hooks_url":"https://api.github.com/repos/PRX/amara/hooks","issue_events_url":"https://api.github.com/repos/PRX/amara/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/amara/events","assignees_url":"https://api.github.com/repos/PRX/amara/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/amara/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/amara/tags","blobs_url":"https://api.github.com/repos/PRX/amara/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/amara/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/amara/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/amara/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/amara/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/amara/languages","stargazers_url":"https://api.github.com/repos/PRX/amara/stargazers","contributors_url":"https://api.github.com/repos/PRX/amara/contributors","subscribers_url":"https://api.github.com/repos/PRX/amara/subscribers","subscription_url":"https://api.github.com/repos/PRX/amara/subscription","commits_url":"https://api.github.com/repos/PRX/amara/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/amara/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/amara/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/amara/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/amara/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/amara/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/amara/merges","archive_url":"https://api.github.com/repos/PRX/amara/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/amara/downloads","issues_url":"https://api.github.com/repos/PRX/amara/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/amara/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/amara/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/amara/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/amara/labels{/name}","releases_url":"https://api.github.com/repos/PRX/amara/releases{/id}","created_at":"2013-08-12T17:10:34Z","updated_at":"2015-04-07T12:45:52Z","pushed_at":"2015-06-22T16:39:37Z","git_url":"git://github.com/PRX/amara.git","ssh_url":"git@github.com:PRX/amara.git","clone_url":"https://github.com/PRX/amara.git","svn_url":"https://github.com/PRX/amara","homepage":null,"size":231,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/amara/pulls/4"},"html":{"href":"https://github.com/PRX/amara/pull/4"},"issue":{"href":"https://api.github.com/repos/PRX/amara/issues/4"},"comments":{"href":"https://api.github.com/repos/PRX/amara/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/amara/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/amara/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/amara/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/amara/statuses/31ae373aaa746fcf69e37e8a38c5b049bfb7df84"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":3,"changed_files":1}}