UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

18 lines (17 loc) 589 B
// This file was auto-generated by Fern from our API Definition. import * as errors from "../../errors/index.mjs"; export class BadRequestError extends errors.PhonicError { constructor(body, rawResponse) { super({ message: "BadRequestError", statusCode: 400, body: body, rawResponse: rawResponse, }); Object.setPrototypeOf(this, new.target.prototype); if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } this.name = this.constructor.name; } }