{"action":"closed","issue":{"url":"https://api.github.com/repos/cpo-org/cpo-api/issues/22","labels_url":"https://api.github.com/repos/cpo-org/cpo-api/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/cpo-org/cpo-api/issues/22/comments","events_url":"https://api.github.com/repos/cpo-org/cpo-api/issues/22/events","html_url":"https://github.com/cpo-org/cpo-api/issues/22","id":115498375,"number":22,"title":"Add better error reporting to XAException code","user":{"login":"berryware","id":231598,"avatar_url":"https://avatars.githubusercontent.com/u/231598?v=3","gravatar_id":"","url":"https://api.github.com/users/berryware","html_url":"https://github.com/berryware","followers_url":"https://api.github.com/users/berryware/followers","following_url":"https://api.github.com/users/berryware/following{/other_user}","gists_url":"https://api.github.com/users/berryware/gists{/gist_id}","starred_url":"https://api.github.com/users/berryware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berryware/subscriptions","organizations_url":"https://api.github.com/users/berryware/orgs","repos_url":"https://api.github.com/users/berryware/repos","events_url":"https://api.github.com/users/berryware/events{/privacy}","received_events_url":"https://api.github.com/users/berryware/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cpo-org/cpo-api/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T12:45:54Z","updated_at":"2015-11-11T12:25:18Z","closed_at":"2015-11-11T12:25:18Z","body":"XAException lets you create an exception using an int or a string. The ints are defined based on the XAResource spec. Using ints gives no information to the developer on what went wrong. \r\n\r\nWe need to build an Enumeration of the ints to the string name for the int and then have a helper function that appends a message from the developer to it. This way the ERROR_CODE is shown along with a helpful message"}}