Skip to content

Commit

Permalink
Catch HttpResponseException
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina Popa committed May 7, 2016
1 parent cd48b58 commit ddb2d83
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public async Task<IHttpActionResult> PostTrip(Trip trip)
{
current = await InsertAsync(trip);
}
catch (HttpResponseException httpResponseException)
{
aiTelemetry.TrackException(httpResponseException);
aiTelemetry.TrackEvent("Caught HttpResponseException. Response:" + httpResponseException.Response);
}
catch (System.Exception ex)
{
aiTelemetry.TrackException(ex);
Expand Down

0 comments on commit ddb2d83

Please sign in to comment.