Пример #1
0
 public HoptoadError ErrorFromException(Exception exception)
 {
     var error = new HoptoadError {
         Class = exception.GetType().FullName,
         Message = exception.GetType().Name + ": " + exception.Message,
         Backtrace = this.BuildBacktrace(exception).ToArray(),
     };
     return error;
 }
Пример #2
0
 public HoptoadNotice Notice(HoptoadError error)
 {
     var notice = new HoptoadNotice {
         ApiKey = this.Configuration.ApiKey,
         Error = error,
         Notifier = this.Notifier(),
         ServerEnvironment = this.ServerEnvironment(),
     };
     return notice;
 }