internal CrashData(HockeyClient hockeyClient, Exception ex, CrashLogInformation crashLogInfo) { if (hockeyClient == null) { throw new ArgumentNullException("hockeyClient"); } this._hockeyClient = hockeyClient; StringBuilder builder = new StringBuilder(); builder.Append(crashLogInfo.ToString()); builder.AppendLine(); builder.Append(ex.StackTraceToString()); this.Log = builder.ToString(); this.UserID = this._hockeyClient.UserID; this.Contact = this._hockeyClient.ContactInformation; this.SDKName = this._hockeyClient.SdkName; this.SDKVersion = this._hockeyClient.SdkVersion; if (this._hockeyClient.DescriptionLoader != null) { try { this.Description = this._hockeyClient.DescriptionLoader(ex); } catch (Exception e) { hockeyClient.HandleInternalUnhandledException(e); } } }
internal CrashData(HockeyClient hockeyClient, Exception ex, CrashLogInformation crashLogInfo){ if (hockeyClient == null) { throw new ArgumentNullException("hockeyClient"); } this._hockeyClient = hockeyClient; StringBuilder builder = new StringBuilder(); builder.Append(crashLogInfo.ToString()); builder.AppendLine(); builder.Append(ex.StackTraceToString()); this.Log = builder.ToString(); this.UserID = this._hockeyClient.UserID; this.Contact = this._hockeyClient.ContactInformation; this.SDKName = this._hockeyClient.SdkName; this.SDKVersion = this._hockeyClient.SdkVersion; if (this._hockeyClient.DescriptionLoader != null) { try { this.Description = this._hockeyClient.DescriptionLoader(ex); } catch (Exception e) { hockeyClient.HandleInternalUnhandledException(e); } } }
//needed for crashes from unity-log internal CrashData(HockeyClient hockeyClient, string logString, string stackTrace, CrashLogInformation crashLogInfo) { this._hockeyClient = hockeyClient; StringBuilder builder = new StringBuilder(); builder.Append(crashLogInfo.ToString()); builder.AppendLine(); builder.Append(logString); builder.AppendLine(); builder.AppendLine(string.IsNullOrEmpty(stackTrace) ? " at unknown location" : stackTrace); this.Log = builder.ToString(); this.UserID = this._hockeyClient.UserID; this.Contact = this._hockeyClient.ContactInformation; this.SDKName = this._hockeyClient.SdkName; this.SDKVersion = this._hockeyClient.SdkVersion; //we don't support DescriptionLoader from unity at the moment }