{"action":"created","issue":{"url":"https://api.github.com/repos/liferay/liferay-mobile-sdk/issues/12","labels_url":"https://api.github.com/repos/liferay/liferay-mobile-sdk/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/liferay/liferay-mobile-sdk/issues/12/comments","events_url":"https://api.github.com/repos/liferay/liferay-mobile-sdk/issues/12/events","html_url":"https://github.com/liferay/liferay-mobile-sdk/issues/12","id":54875485,"number":12,"title":"Every method invocation throws Exception","user":{"login":"ravishi","id":174733,"avatar_url":"https://avatars.githubusercontent.com/u/174733?v=3","gravatar_id":"","url":"https://api.github.com/users/ravishi","html_url":"https://github.com/ravishi","followers_url":"https://api.github.com/users/ravishi/followers","following_url":"https://api.github.com/users/ravishi/following{/other_user}","gists_url":"https://api.github.com/users/ravishi/gists{/gist_id}","starred_url":"https://api.github.com/users/ravishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravishi/subscriptions","organizations_url":"https://api.github.com/users/ravishi/orgs","repos_url":"https://api.github.com/users/ravishi/repos","events_url":"https://api.github.com/users/ravishi/events{/privacy}","received_events_url":"https://api.github.com/users/ravishi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-20T12:07:05Z","updated_at":"2015-01-27T11:09:43Z","closed_at":"2015-01-27T11:09:43Z","body":"I find it pretty hard to deal with the right errors in code using the Android client because every Java method that reaches the web service is currently signed with \"throws Exception\".\r\n\r\nBecause of that, it's pretty hard to identify exaclty what can go wrong inside the client's code. We know that there can occur networking problems, IO errors, HTTP errors, exceptions returned by the remote server, by the service itself, etc. But since everything is signed just as \"exception\" that doesn't help on quickly identifying what errors my code is going to have to deal with, which leads to bad code.\r\n\r\nNow, I had some working code before switching over to liferay-mobile-sdk on Android, and I guess I could try to clean up some of this exception noise. Would that be useful?"},"comment":{"url":"https://api.github.com/repos/liferay/liferay-mobile-sdk/issues/comments/71629592","html_url":"https://github.com/liferay/liferay-mobile-sdk/issues/12#issuecomment-71629592","issue_url":"https://api.github.com/repos/liferay/liferay-mobile-sdk/issues/12","id":71629592,"user":{"login":"brunofarache","id":275916,"avatar_url":"https://avatars.githubusercontent.com/u/275916?v=3","gravatar_id":"","url":"https://api.github.com/users/brunofarache","html_url":"https://github.com/brunofarache","followers_url":"https://api.github.com/users/brunofarache/followers","following_url":"https://api.github.com/users/brunofarache/following{/other_user}","gists_url":"https://api.github.com/users/brunofarache/gists{/gist_id}","starred_url":"https://api.github.com/users/brunofarache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunofarache/subscriptions","organizations_url":"https://api.github.com/users/brunofarache/orgs","repos_url":"https://api.github.com/users/brunofarache/repos","events_url":"https://api.github.com/users/brunofarache/events{/privacy}","received_events_url":"https://api.github.com/users/brunofarache/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T11:09:43Z","updated_at":"2015-01-27T11:09:43Z","body":"Closing this in the meantime."}}