{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/gax-python/pulls/comments/58103633","id":58103633,"diff_hunk":"@@ -0,0 +1,57 @@\n+# Copyright 2016, Google Inc.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions are\n+# met:\n+#\n+#     * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+#     * Redistributions in binary form must reproduce the above\n+# copyright notice, this list of conditions and the following disclaimer\n+# in the documentation and/or other materials provided with the\n+# distribution.\n+#     * Neither the name of Google Inc. nor the names of its\n+# contributors may be used to endorse or promote products derived from\n+# this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+\"\"\"Provides GAX exceptions.\"\"\"\n+\n+\n+class GaxError(Exception):\n+    \"\"\"Common base class for exceptions raised by GAX.\n+\n+    Attributes:\n+      msg (string): describes the error that occurred.\n+      wrapped (Exception, optional): the exception raised by a lower","path":"google/gax/errors.py","position":38,"original_position":38,"commit_id":"25dd04aa6e27d063d9c40c56edf376adee0aecf4","original_commit_id":"25dd04aa6e27d063d9c40c56edf376adee0aecf4","user":{"login":"tbetbetbe","id":9272342,"avatar_url":"https://avatars.githubusercontent.com/u/9272342?v=3","gravatar_id":"","url":"https://api.github.com/users/tbetbetbe","html_url":"https://github.com/tbetbetbe","followers_url":"https://api.github.com/users/tbetbetbe/followers","following_url":"https://api.github.com/users/tbetbetbe/following{/other_user}","gists_url":"https://api.github.com/users/tbetbetbe/gists{/gist_id}","starred_url":"https://api.github.com/users/tbetbetbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbetbetbe/subscriptions","organizations_url":"https://api.github.com/users/tbetbetbe/orgs","repos_url":"https://api.github.com/users/tbetbetbe/repos","events_url":"https://api.github.com/users/tbetbetbe/events{/privacy}","received_events_url":"https://api.github.com/users/tbetbetbe/received_events","type":"User","site_admin":false},"body":"s/wrapped/cause/","created_at":"2016-03-31T18:27:14Z","updated_at":"2016-03-31T18:27:14Z","html_url":"https://github.com/googleapis/gax-python/pull/72#discussion_r58103633","pull_request_url":"https://api.github.com/repos/googleapis/gax-python/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/googleapis/gax-python/pulls/comments/58103633"},"html":{"href":"https://github.com/googleapis/gax-python/pull/72#discussion_r58103633"},"pull_request":{"href":"https://api.github.com/repos/googleapis/gax-python/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/googleapis/gax-python/pulls/72","id":64832852,"html_url":"https://github.com/googleapis/gax-python/pull/72","diff_url":"https://github.com/googleapis/gax-python/pull/72.diff","patch_url":"https://github.com/googleapis/gax-python/pull/72.patch","issue_url":"https://api.github.com/repos/googleapis/gax-python/issues/72","number":72,"state":"open","locked":false,"title":"Wrap gRPC errors","user":{"login":"geigerj","id":14222439,"avatar_url":"https://avatars.githubusercontent.com/u/14222439?v=3","gravatar_id":"","url":"https://api.github.com/users/geigerj","html_url":"https://github.com/geigerj","followers_url":"https://api.github.com/users/geigerj/followers","following_url":"https://api.github.com/users/geigerj/following{/other_user}","gists_url":"https://api.github.com/users/geigerj/gists{/gist_id}","starred_url":"https://api.github.com/users/geigerj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geigerj/subscriptions","organizations_url":"https://api.github.com/users/geigerj/orgs","repos_url":"https://api.github.com/users/geigerj/repos","events_url":"https://api.github.com/users/geigerj/events{/privacy}","received_events_url":"https://api.github.com/users/geigerj/received_events","type":"User","site_admin":false},"body":"Wraps instaces of gRPC AbortionError during RPCs with GaxError.","created_at":"2016-03-31T18:05:24Z","updated_at":"2016-03-31T18:27:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84fc5ab54ce7749cbfd578d237487e250101e964","assignee":{"login":"tbetbetbe","id":9272342,"avatar_url":"https://avatars.githubusercontent.com/u/9272342?v=3","gravatar_id":"","url":"https://api.github.com/users/tbetbetbe","html_url":"https://github.com/tbetbetbe","followers_url":"https://api.github.com/users/tbetbetbe/followers","following_url":"https://api.github.com/users/tbetbetbe/following{/other_user}","gists_url":"https://api.github.com/users/tbetbetbe/gists{/gist_id}","starred_url":"https://api.github.com/users/tbetbetbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbetbetbe/subscriptions","organizations_url":"https://api.github.com/users/tbetbetbe/orgs","repos_url":"https://api.github.com/users/tbetbetbe/repos","events_url":"https://api.github.com/users/tbetbetbe/events{/privacy}","received_events_url":"https://api.github.com/users/tbetbetbe/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/gax-python/pulls/72/commits","review_comments_url":"https://api.github.com/repos/googleapis/gax-python/pulls/72/comments","review_comment_url":"https://api.github.com/repos/googleapis/gax-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/gax-python/issues/72/comments","statuses_url":"https://api.github.com/repos/googleapis/gax-python/statuses/25dd04aa6e27d063d9c40c56edf376adee0aecf4","head":{"label":"geigerj:master","ref":"master","sha":"25dd04aa6e27d063d9c40c56edf376adee0aecf4","user":{"login":"geigerj","id":14222439,"avatar_url":"https://avatars.githubusercontent.com/u/14222439?v=3","gravatar_id":"","url":"https://api.github.com/users/geigerj","html_url":"https://github.com/geigerj","followers_url":"https://api.github.com/users/geigerj/followers","following_url":"https://api.github.com/users/geigerj/following{/other_user}","gists_url":"https://api.github.com/users/geigerj/gists{/gist_id}","starred_url":"https://api.github.com/users/geigerj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geigerj/subscriptions","organizations_url":"https://api.github.com/users/geigerj/orgs","repos_url":"https://api.github.com/users/geigerj/repos","events_url":"https://api.github.com/users/geigerj/events{/privacy}","received_events_url":"https://api.github.com/users/geigerj/received_events","type":"User","site_admin":false},"repo":{"id":51536379,"name":"gax-python","full_name":"geigerj/gax-python","owner":{"login":"geigerj","id":14222439,"avatar_url":"https://avatars.githubusercontent.com/u/14222439?v=3","gravatar_id":"","url":"https://api.github.com/users/geigerj","html_url":"https://github.com/geigerj","followers_url":"https://api.github.com/users/geigerj/followers","following_url":"https://api.github.com/users/geigerj/following{/other_user}","gists_url":"https://api.github.com/users/geigerj/gists{/gist_id}","starred_url":"https://api.github.com/users/geigerj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geigerj/subscriptions","organizations_url":"https://api.github.com/users/geigerj/orgs","repos_url":"https://api.github.com/users/geigerj/repos","events_url":"https://api.github.com/users/geigerj/events{/privacy}","received_events_url":"https://api.github.com/users/geigerj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geigerj/gax-python","description":"","fork":true,"url":"https://api.github.com/repos/geigerj/gax-python","forks_url":"https://api.github.com/repos/geigerj/gax-python/forks","keys_url":"https://api.github.com/repos/geigerj/gax-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geigerj/gax-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geigerj/gax-python/teams","hooks_url":"https://api.github.com/repos/geigerj/gax-python/hooks","issue_events_url":"https://api.github.com/repos/geigerj/gax-python/issues/events{/number}","events_url":"https://api.github.com/repos/geigerj/gax-python/events","assignees_url":"https://api.github.com/repos/geigerj/gax-python/assignees{/user}","branches_url":"https://api.github.com/repos/geigerj/gax-python/branches{/branch}","tags_url":"https://api.github.com/repos/geigerj/gax-python/tags","blobs_url":"https://api.github.com/repos/geigerj/gax-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geigerj/gax-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geigerj/gax-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/geigerj/gax-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geigerj/gax-python/statuses/{sha}","languages_url":"https://api.github.com/repos/geigerj/gax-python/languages","stargazers_url":"https://api.github.com/repos/geigerj/gax-python/stargazers","contributors_url":"https://api.github.com/repos/geigerj/gax-python/contributors","subscribers_url":"https://api.github.com/repos/geigerj/gax-python/subscribers","subscription_url":"https://api.github.com/repos/geigerj/gax-python/subscription","commits_url":"https://api.github.com/repos/geigerj/gax-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/geigerj/gax-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/geigerj/gax-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/geigerj/gax-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/geigerj/gax-python/contents/{+path}","compare_url":"https://api.github.com/repos/geigerj/gax-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geigerj/gax-python/merges","archive_url":"https://api.github.com/repos/geigerj/gax-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geigerj/gax-python/downloads","issues_url":"https://api.github.com/repos/geigerj/gax-python/issues{/number}","pulls_url":"https://api.github.com/repos/geigerj/gax-python/pulls{/number}","milestones_url":"https://api.github.com/repos/geigerj/gax-python/milestones{/number}","notifications_url":"https://api.github.com/repos/geigerj/gax-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geigerj/gax-python/labels{/name}","releases_url":"https://api.github.com/repos/geigerj/gax-python/releases{/id}","deployments_url":"https://api.github.com/repos/geigerj/gax-python/deployments","created_at":"2016-02-11T18:27:06Z","updated_at":"2016-02-11T18:27:07Z","pushed_at":"2016-03-31T18:04:34Z","git_url":"git://github.com/geigerj/gax-python.git","ssh_url":"git@github.com:geigerj/gax-python.git","clone_url":"https://github.com/geigerj/gax-python.git","svn_url":"https://github.com/geigerj/gax-python","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"googleapis:master","ref":"master","sha":"63fa6ec2c3b70a45a47193447ded6eb35f7cb2f4","user":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars.githubusercontent.com/u/16785467?v=3","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":50878409,"name":"gax-python","full_name":"googleapis/gax-python","owner":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars.githubusercontent.com/u/16785467?v=3","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googleapis/gax-python","description":"","fork":false,"url":"https://api.github.com/repos/googleapis/gax-python","forks_url":"https://api.github.com/repos/googleapis/gax-python/forks","keys_url":"https://api.github.com/repos/googleapis/gax-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/gax-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/gax-python/teams","hooks_url":"https://api.github.com/repos/googleapis/gax-python/hooks","issue_events_url":"https://api.github.com/repos/googleapis/gax-python/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/gax-python/events","assignees_url":"https://api.github.com/repos/googleapis/gax-python/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/gax-python/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/gax-python/tags","blobs_url":"https://api.github.com/repos/googleapis/gax-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/gax-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/gax-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/gax-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/gax-python/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/gax-python/languages","stargazers_url":"https://api.github.com/repos/googleapis/gax-python/stargazers","contributors_url":"https://api.github.com/repos/googleapis/gax-python/contributors","subscribers_url":"https://api.github.com/repos/googleapis/gax-python/subscribers","subscription_url":"https://api.github.com/repos/googleapis/gax-python/subscription","commits_url":"https://api.github.com/repos/googleapis/gax-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/gax-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/gax-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/gax-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/gax-python/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/gax-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/gax-python/merges","archive_url":"https://api.github.com/repos/googleapis/gax-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/gax-python/downloads","issues_url":"https://api.github.com/repos/googleapis/gax-python/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/gax-python/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/gax-python/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/gax-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/gax-python/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/gax-python/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/gax-python/deployments","created_at":"2016-02-01T23:13:08Z","updated_at":"2016-02-11T16:50:47Z","pushed_at":"2016-03-31T18:05:24Z","git_url":"git://github.com/googleapis/gax-python.git","ssh_url":"git@github.com:googleapis/gax-python.git","clone_url":"https://github.com/googleapis/gax-python.git","svn_url":"https://github.com/googleapis/gax-python","homepage":null,"size":175,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/gax-python/pulls/72"},"html":{"href":"https://github.com/googleapis/gax-python/pull/72"},"issue":{"href":"https://api.github.com/repos/googleapis/gax-python/issues/72"},"comments":{"href":"https://api.github.com/repos/googleapis/gax-python/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/gax-python/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/gax-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/gax-python/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/gax-python/statuses/25dd04aa6e27d063d9c40c56edf376adee0aecf4"}}}}