UNPKG

anil-brd-typescript-sdk

Version:

TypeScript SDK for Bright Data APIs - Web Unlocker, SERP, and Scraper APIs

16 lines (15 loc) 525 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrightDataError = void 0; class BrightDataError extends Error { constructor(message, statusCode, code, requestId, suggestion, learnMoreUrl) { super(message); this.statusCode = statusCode; this.code = code; this.requestId = requestId; this.suggestion = suggestion; this.learnMoreUrl = learnMoreUrl; this.name = 'BrightDataError'; } } exports.BrightDataError = BrightDataError;