Finished the notes! Resolved #7

This commit is contained in:
Jamie Rees 2016-03-15 19:14:27 +00:00
parent 98c0a4f879
commit a2f44cf8d2
10 changed files with 40 additions and 28 deletions

View file

@ -95,10 +95,17 @@ namespace PlexRequests.Api
throw new ApplicationException(message, response.ErrorException);
}
var json = JsonConvert.DeserializeObject<T>(response.Content);
return json;
try
{
var json = JsonConvert.DeserializeObject<T>(response.Content);
return json;
}
catch (Exception e)
{
Log.Fatal(e);
throw;
}
}
public T DeserializeXml<T>(string input)