What if Raygun is down or Raygun.Send throws an exception?
Houda
Posted on
May 31 2014
I am using the .Net API. Should I handle Raygun.Send exceptions? Or is that being handled in the API code?
Houda
Posted on
May 31 2014
I guess I should have looked at the code before asking this question.
try
{
var message = SimpleJson.SerializeObject(raygunMessage);
client.UploadString(RaygunSettings.Settings.ApiEndpoint, message);
}
catch (Exception ex)
{
System.Diagnostics.Trace.WriteLine(string.Format("Error Logging Exception to Raygun.io {0}", ex.Message));
if (RaygunSettings.Settings.ThrowOnError)
{
throw;
}
}