Bugsense.WPF.BugSense.SendException C# (CSharp) Method

SendException() public static method

Sends an exception to bugsense as if a crash occured. Useful for handling the UnhandledException manually.
Thrown if the Bugsense.Init method is not called before this method
public static SendException ( Exception exception ) : void
exception System.Exception The exception to send to BugSense
return void
        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));
        }