UNPKG

poe-api-manager

Version:
21 lines (20 loc) 621 B
import CustomError from "./CustomError"; /** * Represents an API error with a message, status code, and additional details. * @class * @extends {CustomError} */ export default class ApiError extends CustomError { /** * The additional details of the error. * @type {any} */ details: any; /** * Creates a new instance of ApiError. * @param {string} message - The error message. * @param {number} statusCode - The HTTP status code. * @param {any} details - The additional details of the error. */ constructor(message: string, statusCode: number, details?: any); }