poe-api-manager
Version:
poe.ninja and poe.watch API
21 lines (20 loc) • 621 B
TypeScript
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);
}