{"action":"created","comment":{"url":"https://api.github.com/repos/ding2/ting-client/pulls/comments/33148114","id":33148114,"diff_hunk":"@@ -1,5 +1,20 @@\n <?php\n \n class TingClientException extends Exception {\n-}\n+  public $user_message = NULL;\n+  public function __construct($message, $code = 0, Exception $previous = null) {\n+    foreach($this->errors as $val){\n+      if(strpos($message, $val) !== FALSE){","path":"lib/exception/TingClientException.php","position":8,"original_position":8,"commit_id":"a77a38a785d40cb7c626bc6589369737d5822153","original_commit_id":"a77a38a785d40cb7c626bc6589369737d5822153","user":{"login":"kasperg","id":73966,"avatar_url":"https://avatars.githubusercontent.com/u/73966?v=3","gravatar_id":"","url":"https://api.github.com/users/kasperg","html_url":"https://github.com/kasperg","followers_url":"https://api.github.com/users/kasperg/followers","following_url":"https://api.github.com/users/kasperg/following{/other_user}","gists_url":"https://api.github.com/users/kasperg/gists{/gist_id}","starred_url":"https://api.github.com/users/kasperg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasperg/subscriptions","organizations_url":"https://api.github.com/users/kasperg/orgs","repos_url":"https://api.github.com/users/kasperg/repos","events_url":"https://api.github.com/users/kasperg/events{/privacy}","received_events_url":"https://api.github.com/users/kasperg/received_events","type":"User","site_admin":false},"body":"Some code style issues here.","created_at":"2015-06-24T13:43:29Z","updated_at":"2015-06-24T13:43:29Z","html_url":"https://github.com/ding2/ting-client/pull/12#discussion_r33148114","pull_request_url":"https://api.github.com/repos/ding2/ting-client/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/ding2/ting-client/pulls/comments/33148114"},"html":{"href":"https://github.com/ding2/ting-client/pull/12#discussion_r33148114"},"pull_request":{"href":"https://api.github.com/repos/ding2/ting-client/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/ding2/ting-client/pulls/12","id":37166098,"html_url":"https://github.com/ding2/ting-client/pull/12","diff_url":"https://github.com/ding2/ting-client/pull/12.diff","patch_url":"https://github.com/ding2/ting-client/pull/12.patch","issue_url":"https://api.github.com/repos/ding2/ting-client/issues/12","number":12,"state":"open","locked":false,"title":"Issue 429 by Pjohans: show various error message in exception","user":{"login":"pjohans","id":953804,"avatar_url":"https://avatars.githubusercontent.com/u/953804?v=3","gravatar_id":"","url":"https://api.github.com/users/pjohans","html_url":"https://github.com/pjohans","followers_url":"https://api.github.com/users/pjohans/followers","following_url":"https://api.github.com/users/pjohans/following{/other_user}","gists_url":"https://api.github.com/users/pjohans/gists{/gist_id}","starred_url":"https://api.github.com/users/pjohans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjohans/subscriptions","organizations_url":"https://api.github.com/users/pjohans/orgs","repos_url":"https://api.github.com/users/pjohans/repos","events_url":"https://api.github.com/users/pjohans/events{/privacy}","received_events_url":"https://api.github.com/users/pjohans/received_events","type":"User","site_admin":false},"body":"This one relates to previous pull. Show a message depending on the type of error","created_at":"2015-06-08T15:36:12Z","updated_at":"2015-06-24T13:43:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c1e69e4c5ae36055ada56c08986f2620c521596","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ding2/ting-client/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ding2/ting-client/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ding2/ting-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ding2/ting-client/issues/12/comments","statuses_url":"https://api.github.com/repos/ding2/ting-client/statuses/a77a38a785d40cb7c626bc6589369737d5822153","head":{"label":"pjohans:Issue429","ref":"Issue429","sha":"a77a38a785d40cb7c626bc6589369737d5822153","user":{"login":"pjohans","id":953804,"avatar_url":"https://avatars.githubusercontent.com/u/953804?v=3","gravatar_id":"","url":"https://api.github.com/users/pjohans","html_url":"https://github.com/pjohans","followers_url":"https://api.github.com/users/pjohans/followers","following_url":"https://api.github.com/users/pjohans/following{/other_user}","gists_url":"https://api.github.com/users/pjohans/gists{/gist_id}","starred_url":"https://api.github.com/users/pjohans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjohans/subscriptions","organizations_url":"https://api.github.com/users/pjohans/orgs","repos_url":"https://api.github.com/users/pjohans/repos","events_url":"https://api.github.com/users/pjohans/events{/privacy}","received_events_url":"https://api.github.com/users/pjohans/received_events","type":"User","site_admin":false},"repo":{"id":30912413,"name":"ting-client","full_name":"pjohans/ting-client","owner":{"login":"pjohans","id":953804,"avatar_url":"https://avatars.githubusercontent.com/u/953804?v=3","gravatar_id":"","url":"https://api.github.com/users/pjohans","html_url":"https://github.com/pjohans","followers_url":"https://api.github.com/users/pjohans/followers","following_url":"https://api.github.com/users/pjohans/following{/other_user}","gists_url":"https://api.github.com/users/pjohans/gists{/gist_id}","starred_url":"https://api.github.com/users/pjohans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjohans/subscriptions","organizations_url":"https://api.github.com/users/pjohans/orgs","repos_url":"https://api.github.com/users/pjohans/repos","events_url":"https://api.github.com/users/pjohans/events{/privacy}","received_events_url":"https://api.github.com/users/pjohans/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pjohans/ting-client","description":"A PHP5 client to talk with the TING / DBC API \"Databrønd\"","fork":true,"url":"https://api.github.com/repos/pjohans/ting-client","forks_url":"https://api.github.com/repos/pjohans/ting-client/forks","keys_url":"https://api.github.com/repos/pjohans/ting-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pjohans/ting-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pjohans/ting-client/teams","hooks_url":"https://api.github.com/repos/pjohans/ting-client/hooks","issue_events_url":"https://api.github.com/repos/pjohans/ting-client/issues/events{/number}","events_url":"https://api.github.com/repos/pjohans/ting-client/events","assignees_url":"https://api.github.com/repos/pjohans/ting-client/assignees{/user}","branches_url":"https://api.github.com/repos/pjohans/ting-client/branches{/branch}","tags_url":"https://api.github.com/repos/pjohans/ting-client/tags","blobs_url":"https://api.github.com/repos/pjohans/ting-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pjohans/ting-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pjohans/ting-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/pjohans/ting-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pjohans/ting-client/statuses/{sha}","languages_url":"https://api.github.com/repos/pjohans/ting-client/languages","stargazers_url":"https://api.github.com/repos/pjohans/ting-client/stargazers","contributors_url":"https://api.github.com/repos/pjohans/ting-client/contributors","subscribers_url":"https://api.github.com/repos/pjohans/ting-client/subscribers","subscription_url":"https://api.github.com/repos/pjohans/ting-client/subscription","commits_url":"https://api.github.com/repos/pjohans/ting-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/pjohans/ting-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/pjohans/ting-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/pjohans/ting-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/pjohans/ting-client/contents/{+path}","compare_url":"https://api.github.com/repos/pjohans/ting-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pjohans/ting-client/merges","archive_url":"https://api.github.com/repos/pjohans/ting-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pjohans/ting-client/downloads","issues_url":"https://api.github.com/repos/pjohans/ting-client/issues{/number}","pulls_url":"https://api.github.com/repos/pjohans/ting-client/pulls{/number}","milestones_url":"https://api.github.com/repos/pjohans/ting-client/milestones{/number}","notifications_url":"https://api.github.com/repos/pjohans/ting-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pjohans/ting-client/labels{/name}","releases_url":"https://api.github.com/repos/pjohans/ting-client/releases{/id}","created_at":"2015-02-17T10:30:39Z","updated_at":"2015-02-17T10:30:40Z","pushed_at":"2015-06-18T07:17:37Z","git_url":"git://github.com/pjohans/ting-client.git","ssh_url":"git@github.com:pjohans/ting-client.git","clone_url":"https://github.com/pjohans/ting-client.git","svn_url":"https://github.com/pjohans/ting-client","homepage":"http://ding.gnit.dk","size":731,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"ding2:master","ref":"master","sha":"32926df2e9d52bc24636603f36088ad33bb299a6","user":{"login":"ding2","id":564698,"avatar_url":"https://avatars.githubusercontent.com/u/564698?v=3","gravatar_id":"","url":"https://api.github.com/users/ding2","html_url":"https://github.com/ding2","followers_url":"https://api.github.com/users/ding2/followers","following_url":"https://api.github.com/users/ding2/following{/other_user}","gists_url":"https://api.github.com/users/ding2/gists{/gist_id}","starred_url":"https://api.github.com/users/ding2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ding2/subscriptions","organizations_url":"https://api.github.com/users/ding2/orgs","repos_url":"https://api.github.com/users/ding2/repos","events_url":"https://api.github.com/users/ding2/events{/privacy}","received_events_url":"https://api.github.com/users/ding2/received_events","type":"Organization","site_admin":false},"repo":{"id":2117671,"name":"ting-client","full_name":"ding2/ting-client","owner":{"login":"ding2","id":564698,"avatar_url":"https://avatars.githubusercontent.com/u/564698?v=3","gravatar_id":"","url":"https://api.github.com/users/ding2","html_url":"https://github.com/ding2","followers_url":"https://api.github.com/users/ding2/followers","following_url":"https://api.github.com/users/ding2/following{/other_user}","gists_url":"https://api.github.com/users/ding2/gists{/gist_id}","starred_url":"https://api.github.com/users/ding2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ding2/subscriptions","organizations_url":"https://api.github.com/users/ding2/orgs","repos_url":"https://api.github.com/users/ding2/repos","events_url":"https://api.github.com/users/ding2/events{/privacy}","received_events_url":"https://api.github.com/users/ding2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ding2/ting-client","description":"A PHP5 client to talk with the TING / DBC API \"Databrønd\"","fork":true,"url":"https://api.github.com/repos/ding2/ting-client","forks_url":"https://api.github.com/repos/ding2/ting-client/forks","keys_url":"https://api.github.com/repos/ding2/ting-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ding2/ting-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ding2/ting-client/teams","hooks_url":"https://api.github.com/repos/ding2/ting-client/hooks","issue_events_url":"https://api.github.com/repos/ding2/ting-client/issues/events{/number}","events_url":"https://api.github.com/repos/ding2/ting-client/events","assignees_url":"https://api.github.com/repos/ding2/ting-client/assignees{/user}","branches_url":"https://api.github.com/repos/ding2/ting-client/branches{/branch}","tags_url":"https://api.github.com/repos/ding2/ting-client/tags","blobs_url":"https://api.github.com/repos/ding2/ting-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ding2/ting-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ding2/ting-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ding2/ting-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ding2/ting-client/statuses/{sha}","languages_url":"https://api.github.com/repos/ding2/ting-client/languages","stargazers_url":"https://api.github.com/repos/ding2/ting-client/stargazers","contributors_url":"https://api.github.com/repos/ding2/ting-client/contributors","subscribers_url":"https://api.github.com/repos/ding2/ting-client/subscribers","subscription_url":"https://api.github.com/repos/ding2/ting-client/subscription","commits_url":"https://api.github.com/repos/ding2/ting-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ding2/ting-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ding2/ting-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ding2/ting-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/ding2/ting-client/contents/{+path}","compare_url":"https://api.github.com/repos/ding2/ting-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ding2/ting-client/merges","archive_url":"https://api.github.com/repos/ding2/ting-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ding2/ting-client/downloads","issues_url":"https://api.github.com/repos/ding2/ting-client/issues{/number}","pulls_url":"https://api.github.com/repos/ding2/ting-client/pulls{/number}","milestones_url":"https://api.github.com/repos/ding2/ting-client/milestones{/number}","notifications_url":"https://api.github.com/repos/ding2/ting-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ding2/ting-client/labels{/name}","releases_url":"https://api.github.com/repos/ding2/ting-client/releases{/id}","created_at":"2011-07-28T09:12:57Z","updated_at":"2015-01-20T14:51:46Z","pushed_at":"2015-06-23T10:43:21Z","git_url":"git://github.com/ding2/ting-client.git","ssh_url":"git@github.com:ding2/ting-client.git","clone_url":"https://github.com/ding2/ting-client.git","svn_url":"https://github.com/ding2/ting-client","homepage":"http://ding.gnit.dk","size":837,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ding2/ting-client/pulls/12"},"html":{"href":"https://github.com/ding2/ting-client/pull/12"},"issue":{"href":"https://api.github.com/repos/ding2/ting-client/issues/12"},"comments":{"href":"https://api.github.com/repos/ding2/ting-client/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ding2/ting-client/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ding2/ting-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ding2/ting-client/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ding2/ting-client/statuses/a77a38a785d40cb7c626bc6589369737d5822153"}}}}