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; }
public HoptoadNotice Notice(HoptoadError error) { var notice = new HoptoadNotice { ApiKey = this.Configuration.ApiKey, Error = error, Notifier = this.Notifier(), ServerEnvironment = this.ServerEnvironment(), }; return notice; }