{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf/pulls/comments/69743117","id":69743117,"diff_hunk":"@@ -554,11 +555,14 @@ public Response getDocument(@Encoded @PathParam(\"sourceid\") String encodedSource\n                 LOGGER.warn(exceptionMessage, e);\n                 throw new ServerErrorException(exceptionMessage, Status.BAD_REQUEST);\n                 // The catalog framework will throw this if any of the transformers blow up. We need to\n-\n                 // catch this exception\n                 // here or else execution will return to CXF and we'll lose this message and end up with\n                 // a huge stack trace\n                 // in a GUI or whatever else is connected to this endpoint\n+            } catch (DataUsageLimitExceededException e) {\n+                String exceptionMessage = \"Unable to process request. Data usage limit exceeded: \";\n+                LOGGER.warn(exceptionMessage, e);\n+                throw new ServerErrorException(exceptionMessage, Status.INTERNAL_SERVER_ERROR);","path":"catalog/rest/catalog-rest-endpoint/src/main/java/org/codice/ddf/endpoints/rest/RESTEndpoint.java","position":null,"original_position":20,"commit_id":"fb4d9fb34ea2244f69f8aa352028e9aa75fee92f","original_commit_id":"cc9ea373efdf729c4a8d3cc4d2ee661a00eb015c","user":{"login":"bdeining","id":6551038,"avatar_url":"https://avatars.githubusercontent.com/u/6551038?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeining","html_url":"https://github.com/bdeining","followers_url":"https://api.github.com/users/bdeining/followers","following_url":"https://api.github.com/users/bdeining/following{/other_user}","gists_url":"https://api.github.com/users/bdeining/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeining/subscriptions","organizations_url":"https://api.github.com/users/bdeining/orgs","repos_url":"https://api.github.com/users/bdeining/repos","events_url":"https://api.github.com/users/bdeining/events{/privacy}","received_events_url":"https://api.github.com/users/bdeining/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-07-06T14:40:19Z","updated_at":"2016-07-06T14:40:19Z","html_url":"https://github.com/codice/ddf/pull/973#discussion_r69743117","pull_request_url":"https://api.github.com/repos/codice/ddf/pulls/973","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments/69743117"},"html":{"href":"https://github.com/codice/ddf/pull/973#discussion_r69743117"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf/pulls/973"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/973","id":76441913,"html_url":"https://github.com/codice/ddf/pull/973","diff_url":"https://github.com/codice/ddf/pull/973.diff","patch_url":"https://github.com/codice/ddf/pull/973.patch","issue_url":"https://api.github.com/repos/codice/ddf/issues/973","number":973,"state":"open","locked":false,"title":"DDF-2273 Added catch for DataUsageLimitExceededException in REST endpoint","user":{"login":"bdeining","id":6551038,"avatar_url":"https://avatars.githubusercontent.com/u/6551038?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeining","html_url":"https://github.com/bdeining","followers_url":"https://api.github.com/users/bdeining/followers","following_url":"https://api.github.com/users/bdeining/following{/other_user}","gists_url":"https://api.github.com/users/bdeining/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeining/subscriptions","organizations_url":"https://api.github.com/users/bdeining/orgs","repos_url":"https://api.github.com/users/bdeining/repos","events_url":"https://api.github.com/users/bdeining/events{/privacy}","received_events_url":"https://api.github.com/users/bdeining/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nThis PR adds a catch for DataUsageLimitExceededException so a client knows why their download failed.\r\n#### Who is reviewing it (please choose AT LEAST two reviewers that need to approve the PR before it can get merged; if a component team is listed, at least one of its members needs to approve)?\r\n@lcrosenbu @jrnorth   \r\n#### Choose 2 committers to review/merge the PR (please choose ONLY two committers from below, delete the rest).\r\n@jlcsmith\r\n@stustison\r\n#### How should this be tested?\r\nBuild DDF Development, Ingest a resource, Download the resource, Set the Usage Limit for the current user to a small number, Attempt to Download again and observe the error message.\r\n#### Any background context you want to provide?\r\n#### What are the relevant tickets?\r\nhttps://codice.atlassian.net/browse/DDF-2273\r\n#### Screenshots (if appropriate)\r\nhttps://codice.atlassian.net/browse/DDF-2273\r\n#### Checklist:\r\n- [ ] Documentation Updated\r\n- [ ] Update / Add Unit Tests\r\n- [ ] Update / Add Integration Tests","created_at":"2016-07-06T14:30:30Z","updated_at":"2016-07-06T14:40:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a22b5109885d691883abecbc56f94b5cafcd5932","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf/pulls/973/commits","review_comments_url":"https://api.github.com/repos/codice/ddf/pulls/973/comments","review_comment_url":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf/issues/973/comments","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/fb4d9fb34ea2244f69f8aa352028e9aa75fee92f","head":{"label":"bdeining:DDF-2273","ref":"DDF-2273","sha":"fb4d9fb34ea2244f69f8aa352028e9aa75fee92f","user":{"login":"bdeining","id":6551038,"avatar_url":"https://avatars.githubusercontent.com/u/6551038?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeining","html_url":"https://github.com/bdeining","followers_url":"https://api.github.com/users/bdeining/followers","following_url":"https://api.github.com/users/bdeining/following{/other_user}","gists_url":"https://api.github.com/users/bdeining/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeining/subscriptions","organizations_url":"https://api.github.com/users/bdeining/orgs","repos_url":"https://api.github.com/users/bdeining/repos","events_url":"https://api.github.com/users/bdeining/events{/privacy}","received_events_url":"https://api.github.com/users/bdeining/received_events","type":"User","site_admin":false},"repo":{"id":40979396,"name":"ddf","full_name":"bdeining/ddf","owner":{"login":"bdeining","id":6551038,"avatar_url":"https://avatars.githubusercontent.com/u/6551038?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeining","html_url":"https://github.com/bdeining","followers_url":"https://api.github.com/users/bdeining/followers","following_url":"https://api.github.com/users/bdeining/following{/other_user}","gists_url":"https://api.github.com/users/bdeining/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeining/subscriptions","organizations_url":"https://api.github.com/users/bdeining/orgs","repos_url":"https://api.github.com/users/bdeining/repos","events_url":"https://api.github.com/users/bdeining/events{/privacy}","received_events_url":"https://api.github.com/users/bdeining/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bdeining/ddf","description":"The Distributed Data Framework - Distribution, SDK, and Test","fork":true,"url":"https://api.github.com/repos/bdeining/ddf","forks_url":"https://api.github.com/repos/bdeining/ddf/forks","keys_url":"https://api.github.com/repos/bdeining/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bdeining/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bdeining/ddf/teams","hooks_url":"https://api.github.com/repos/bdeining/ddf/hooks","issue_events_url":"https://api.github.com/repos/bdeining/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/bdeining/ddf/events","assignees_url":"https://api.github.com/repos/bdeining/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/bdeining/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/bdeining/ddf/tags","blobs_url":"https://api.github.com/repos/bdeining/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bdeining/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bdeining/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/bdeining/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bdeining/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/bdeining/ddf/languages","stargazers_url":"https://api.github.com/repos/bdeining/ddf/stargazers","contributors_url":"https://api.github.com/repos/bdeining/ddf/contributors","subscribers_url":"https://api.github.com/repos/bdeining/ddf/subscribers","subscription_url":"https://api.github.com/repos/bdeining/ddf/subscription","commits_url":"https://api.github.com/repos/bdeining/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/bdeining/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/bdeining/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/bdeining/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/bdeining/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/bdeining/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bdeining/ddf/merges","archive_url":"https://api.github.com/repos/bdeining/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bdeining/ddf/downloads","issues_url":"https://api.github.com/repos/bdeining/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/bdeining/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/bdeining/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/bdeining/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bdeining/ddf/labels{/name}","releases_url":"https://api.github.com/repos/bdeining/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/bdeining/ddf/deployments","created_at":"2015-08-18T15:16:49Z","updated_at":"2016-01-11T14:33:01Z","pushed_at":"2016-07-06T14:40:08Z","git_url":"git://github.com/bdeining/ddf.git","ssh_url":"git@github.com:bdeining/ddf.git","clone_url":"https://github.com/bdeining/ddf.git","svn_url":"https://github.com/bdeining/ddf","homepage":"","size":143147,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"codice:master","ref":"master","sha":"994fb89e13ef016583c47c52bd1dbd9d87776b40","user":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":15173563,"name":"ddf","full_name":"codice/ddf","owner":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codice/ddf","description":"Distributed Data Framework - an open source, modular integration framework.","fork":false,"url":"https://api.github.com/repos/codice/ddf","forks_url":"https://api.github.com/repos/codice/ddf/forks","keys_url":"https://api.github.com/repos/codice/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/ddf/teams","hooks_url":"https://api.github.com/repos/codice/ddf/hooks","issue_events_url":"https://api.github.com/repos/codice/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/codice/ddf/events","assignees_url":"https://api.github.com/repos/codice/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/codice/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/codice/ddf/tags","blobs_url":"https://api.github.com/repos/codice/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/ddf/languages","stargazers_url":"https://api.github.com/repos/codice/ddf/stargazers","contributors_url":"https://api.github.com/repos/codice/ddf/contributors","subscribers_url":"https://api.github.com/repos/codice/ddf/subscribers","subscription_url":"https://api.github.com/repos/codice/ddf/subscription","commits_url":"https://api.github.com/repos/codice/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/codice/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/ddf/merges","archive_url":"https://api.github.com/repos/codice/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/ddf/downloads","issues_url":"https://api.github.com/repos/codice/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/codice/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/ddf/labels{/name}","releases_url":"https://api.github.com/repos/codice/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/codice/ddf/deployments","created_at":"2013-12-13T20:38:28Z","updated_at":"2016-06-30T23:25:30Z","pushed_at":"2016-07-06T14:40:08Z","git_url":"git://github.com/codice/ddf.git","ssh_url":"git@github.com:codice/ddf.git","clone_url":"https://github.com/codice/ddf.git","svn_url":"https://github.com/codice/ddf","homepage":"http://ddf.codice.org","size":277895,"stargazers_count":39,"watchers_count":39,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":81,"mirror_url":null,"open_issues_count":18,"forks":81,"open_issues":18,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/973"},"html":{"href":"https://github.com/codice/ddf/pull/973"},"issue":{"href":"https://api.github.com/repos/codice/ddf/issues/973"},"comments":{"href":"https://api.github.com/repos/codice/ddf/issues/973/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf/pulls/973/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf/pulls/973/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf/statuses/fb4d9fb34ea2244f69f8aa352028e9aa75fee92f"}}}}
{"actor":{"display_login":"bdeining"}}