{"action":"created","issue":{"url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/111","labels_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/111/comments","events_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/111/events","html_url":"https://github.com/jhuckaby/webcamjs/issues/111","id":107675934,"number":111,"title":"Feature request: dispatch errors including error type but not just string","user":{"login":"haoruiqian","id":624940,"avatar_url":"https://avatars.githubusercontent.com/u/624940?v=3","gravatar_id":"","url":"https://api.github.com/users/haoruiqian","html_url":"https://github.com/haoruiqian","followers_url":"https://api.github.com/users/haoruiqian/followers","following_url":"https://api.github.com/users/haoruiqian/following{/other_user}","gists_url":"https://api.github.com/users/haoruiqian/gists{/gist_id}","starred_url":"https://api.github.com/users/haoruiqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoruiqian/subscriptions","organizations_url":"https://api.github.com/users/haoruiqian/orgs","repos_url":"https://api.github.com/users/haoruiqian/repos","events_url":"https://api.github.com/users/haoruiqian/events{/privacy}","received_events_url":"https://api.github.com/users/haoruiqian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T09:26:54Z","updated_at":"2015-09-27T02:42:37Z","closed_at":null,"body":"Hi all, I see when it dispatches errors, it includes a string to describe the error, but It's not developer friendly, it's hard for developers to detect what's the error type, so it's hard for them to call different handlers for different errors. Is it possible to dispatch errors with error type using type id(number or enum)?"},"comment":{"url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/comments/143513796","html_url":"https://github.com/jhuckaby/webcamjs/issues/111#issuecomment-143513796","issue_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/111","id":143513796,"user":{"login":"jhuckaby","id":700765,"avatar_url":"https://avatars.githubusercontent.com/u/700765?v=3","gravatar_id":"","url":"https://api.github.com/users/jhuckaby","html_url":"https://github.com/jhuckaby","followers_url":"https://api.github.com/users/jhuckaby/followers","following_url":"https://api.github.com/users/jhuckaby/following{/other_user}","gists_url":"https://api.github.com/users/jhuckaby/gists{/gist_id}","starred_url":"https://api.github.com/users/jhuckaby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhuckaby/subscriptions","organizations_url":"https://api.github.com/users/jhuckaby/orgs","repos_url":"https://api.github.com/users/jhuckaby/repos","events_url":"https://api.github.com/users/jhuckaby/events{/privacy}","received_events_url":"https://api.github.com/users/jhuckaby/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T02:42:37Z","updated_at":"2015-09-27T02:42:37Z","body":"That's a great suggestion, thanks.  Added to TODO list."}}