UNPKG

namecomv4

Version:

A Node.js library wrapper for Name.com's V4 API, designed to simplify domain management tasks such as querying domain information, managing DNS records, and handling domain registration and transfer.

13 lines (12 loc) 451 B
export default class NameApiError extends Error { constructor(message, catchedError, httpStatusCode, response) { super(message); this.catchedError = catchedError; this.httpStatusCode = httpStatusCode; this.response = response; this.name = this.constructor.name; this.response = response; this.httpStatusCode = httpStatusCode; Error.captureStackTrace(this, this.constructor); } }