{"action":"created","issue":{"url":"https://api.github.com/repos/paulcbetts/refit/issues/126","labels_url":"https://api.github.com/repos/paulcbetts/refit/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/paulcbetts/refit/issues/126/comments","events_url":"https://api.github.com/repos/paulcbetts/refit/issues/126/events","html_url":"https://github.com/paulcbetts/refit/issues/126","id":55851520,"number":126,"title":"Cannot access to ApiException class.","user":{"login":"aflorenzan","id":739610,"avatar_url":"https://avatars.githubusercontent.com/u/739610?v=3","gravatar_id":"","url":"https://api.github.com/users/aflorenzan","html_url":"https://github.com/aflorenzan","followers_url":"https://api.github.com/users/aflorenzan/followers","following_url":"https://api.github.com/users/aflorenzan/following{/other_user}","gists_url":"https://api.github.com/users/aflorenzan/gists{/gist_id}","starred_url":"https://api.github.com/users/aflorenzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aflorenzan/subscriptions","organizations_url":"https://api.github.com/users/aflorenzan/orgs","repos_url":"https://api.github.com/users/aflorenzan/repos","events_url":"https://api.github.com/users/aflorenzan/events{/privacy}","received_events_url":"https://api.github.com/users/aflorenzan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-29T03:25:26Z","updated_at":"2015-01-29T14:03:25Z","closed_at":null,"body":"I want to catch an ApiException thrown, but I cannot access to the ApiException class to specify it in the catch clausure."},"comment":{"url":"https://api.github.com/repos/paulcbetts/refit/issues/comments/72029095","html_url":"https://github.com/paulcbetts/refit/issues/126#issuecomment-72029095","issue_url":"https://api.github.com/repos/paulcbetts/refit/issues/126","id":72029095,"user":{"login":"RTodorov","id":3506845,"avatar_url":"https://avatars.githubusercontent.com/u/3506845?v=3","gravatar_id":"","url":"https://api.github.com/users/RTodorov","html_url":"https://github.com/RTodorov","followers_url":"https://api.github.com/users/RTodorov/followers","following_url":"https://api.github.com/users/RTodorov/following{/other_user}","gists_url":"https://api.github.com/users/RTodorov/gists{/gist_id}","starred_url":"https://api.github.com/users/RTodorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RTodorov/subscriptions","organizations_url":"https://api.github.com/users/RTodorov/orgs","repos_url":"https://api.github.com/users/RTodorov/repos","events_url":"https://api.github.com/users/RTodorov/events{/privacy}","received_events_url":"https://api.github.com/users/RTodorov/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T14:03:25Z","updated_at":"2015-01-29T14:03:25Z","body":"Guys, AFAIK ApiException is platform specific. You can only use it on the Droid/Touch projects, not on the PCL (because of internal references to System.Net.Http.HttpResponseMessage).\r\n\r\nI've made a wrapper to transport StatusCode + Content from ApiException to the PCL, but it's kinda ugly, maybe Paul can suggest a better solution."}}