public handleErrors()

in src/errors/frames.ts [29:42]


  public handleErrors(options: CustomReportOptions, error: Error) {
    this.infoOpt = options;
    this.logInfo = {
      ...this.infoOpt,
      uniqueId: uuid(),
      category: ErrorsCategory.JS_ERROR,
      grade: GradeTypeEnum.ERROR,
      errorUrl: error.name || location.href,
      message: error.message,
      collector: options.collector || location.origin,
      stack: error.stack,
    };
    this.traceInfo();
  }