CreateCrashReport() 공개 메소드

public CreateCrashReport ( Exception exception ) : BugSenseRequest
exception System.Exception
리턴 BugSenseRequest
예제 #1
0
 /// <summary>
 /// Sends an exception to bugsense as if a crash occured. Useful for handling the UnhandledException manually.
 /// </summary>
 /// <param name="exception">The exception to send to BugSense</param>
 /// <exception cref="InvalidOperationException">Thrown if the Bugsense.Init method is not called before this method</exception>
 public static void SendException(Exception exception)
 {
     if (_errorSender == null)
     {
         throw new InvalidOperationException("BugSense.Init must be called before this method may be called");
     }
     _errorSender.SendOrStore(_informationCollector.CreateCrashReport(exception));
 }