{"action":"created","issue":{"url":"https://api.github.com/repos/nilportugues/php-api-problems/issues/7","repository_url":"https://api.github.com/repos/nilportugues/php-api-problems","labels_url":"https://api.github.com/repos/nilportugues/php-api-problems/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/nilportugues/php-api-problems/issues/7/comments","events_url":"https://api.github.com/repos/nilportugues/php-api-problems/issues/7/events","html_url":"https://github.com/nilportugues/php-api-problems/pull/7","id":161146072,"number":7,"title":"Use class name as detail if exception message is not set","user":{"login":"clovnrian","id":7384003,"avatar_url":"https://avatars.githubusercontent.com/u/7384003?v=3","gravatar_id":"","url":"https://api.github.com/users/clovnrian","html_url":"https://github.com/clovnrian","followers_url":"https://api.github.com/users/clovnrian/followers","following_url":"https://api.github.com/users/clovnrian/following{/other_user}","gists_url":"https://api.github.com/users/clovnrian/gists{/gist_id}","starred_url":"https://api.github.com/users/clovnrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clovnrian/subscriptions","organizations_url":"https://api.github.com/users/clovnrian/orgs","repos_url":"https://api.github.com/users/clovnrian/repos","events_url":"https://api.github.com/users/clovnrian/events{/privacy}","received_events_url":"https://api.github.com/users/clovnrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-20T08:51:08Z","updated_at":"2016-06-21T15:28:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nilportugues/php-api-problems/pulls/7","html_url":"https://github.com/nilportugues/php-api-problems/pull/7","diff_url":"https://github.com/nilportugues/php-api-problems/pull/7.diff","patch_url":"https://github.com/nilportugues/php-api-problems/pull/7.patch"},"body":"Exception message isn't mandatory and if isn't set the exception is thrown. In many cases the exception class name is self explained, so if message is not set use the class name instead."},"comment":{"url":"https://api.github.com/repos/nilportugues/php-api-problems/issues/comments/227477119","html_url":"https://github.com/nilportugues/php-api-problems/pull/7#issuecomment-227477119","issue_url":"https://api.github.com/repos/nilportugues/php-api-problems/issues/7","id":227477119,"user":{"login":"clovnrian","id":7384003,"avatar_url":"https://avatars.githubusercontent.com/u/7384003?v=3","gravatar_id":"","url":"https://api.github.com/users/clovnrian","html_url":"https://github.com/clovnrian","followers_url":"https://api.github.com/users/clovnrian/followers","following_url":"https://api.github.com/users/clovnrian/following{/other_user}","gists_url":"https://api.github.com/users/clovnrian/gists{/gist_id}","starred_url":"https://api.github.com/users/clovnrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clovnrian/subscriptions","organizations_url":"https://api.github.com/users/clovnrian/orgs","repos_url":"https://api.github.com/users/clovnrian/repos","events_url":"https://api.github.com/users/clovnrian/events{/privacy}","received_events_url":"https://api.github.com/users/clovnrian/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T15:28:51Z","updated_at":"2016-06-21T15:28:51Z","body":"Yes, you have right, only class name would be better. \r\n\r\nAnd about the security... In your example the class name will tell you only what is the problem, but message will give you the SQL which is much worse. "}}
{"actor":{"display_login":"clovnrian"}}