- exception
- An Exception data type, the developer can also attach extra data to the .Data parameter of the exception.
- warningLevel
- A warning level for the given report, can be ReportSeverity.Warning or ReportSeverity.Error.
This sample shows how to call the Insights.Report(Exception, ReportSeverity) method.
C# Example
try {
ExceptionThrowingFunction();
}
catch (Exception exception) {
exception.Data["This is some extra data"] = "A cat's field of vision is about 200 degrees.";
Insights.Report(exception);
}