{"action":"created","issue":{"url":"https://api.github.com/repos/GroundApps/ShoppingList_backend/issues/28","labels_url":"https://api.github.com/repos/GroundApps/ShoppingList_backend/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/GroundApps/ShoppingList_backend/issues/28/comments","events_url":"https://api.github.com/repos/GroundApps/ShoppingList_backend/issues/28/events","html_url":"https://github.com/GroundApps/ShoppingList_backend/issues/28","id":103660044,"number":28,"title":"Implement new error handling into api","user":{"login":"J-8","id":9947117,"avatar_url":"https://avatars.githubusercontent.com/u/9947117?v=3","gravatar_id":"","url":"https://api.github.com/users/J-8","html_url":"https://github.com/J-8","followers_url":"https://api.github.com/users/J-8/followers","following_url":"https://api.github.com/users/J-8/following{/other_user}","gists_url":"https://api.github.com/users/J-8/gists{/gist_id}","starred_url":"https://api.github.com/users/J-8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-8/subscriptions","organizations_url":"https://api.github.com/users/J-8/orgs","repos_url":"https://api.github.com/users/J-8/repos","events_url":"https://api.github.com/users/J-8/events{/privacy}","received_events_url":"https://api.github.com/users/J-8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-28T07:00:27Z","updated_at":"2015-08-30T09:06:01Z","closed_at":null,"body":"Morning!\r\nI added improved error handling to the app. In my opinion the most important thing :)\r\nSo whenever an error is thrown by the api:\r\n```php\r\n die (json_encode(array('code' => 'error', 'comment' => 'no database type specified')));\r\n```\r\n\r\nit should now be:\r\n```php\r\n die (json_encode(array('type' => 1000, 'content' => 'specific error message')));\r\n```\r\nThe values of type are all in CONSTANTS.php and the error message will be whatever is in 'content'.\r\nTherefore we can give out new errors, without having to modify the app. So the app will show an error with 'content' as long as the 'type' is >= 5000.\r\n"},"comment":{"url":"https://api.github.com/repos/GroundApps/ShoppingList_backend/issues/comments/136100541","html_url":"https://github.com/GroundApps/ShoppingList_backend/issues/28#issuecomment-136100541","issue_url":"https://api.github.com/repos/GroundApps/ShoppingList_backend/issues/28","id":136100541,"user":{"login":"jklmnn","id":7999005,"avatar_url":"https://avatars.githubusercontent.com/u/7999005?v=3","gravatar_id":"","url":"https://api.github.com/users/jklmnn","html_url":"https://github.com/jklmnn","followers_url":"https://api.github.com/users/jklmnn/followers","following_url":"https://api.github.com/users/jklmnn/following{/other_user}","gists_url":"https://api.github.com/users/jklmnn/gists{/gist_id}","starred_url":"https://api.github.com/users/jklmnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklmnn/subscriptions","organizations_url":"https://api.github.com/users/jklmnn/orgs","repos_url":"https://api.github.com/users/jklmnn/repos","events_url":"https://api.github.com/users/jklmnn/events{/privacy}","received_events_url":"https://api.github.com/users/jklmnn/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T09:06:01Z","updated_at":"2015-08-30T09:06:01Z","body":"I have changed the sqlite connector now with e4201bf2865c16ca8c7c81f765bd6222e1071b65 and 0a6e996029debc307e0a444342d9de0ed87b7274"}}