poe-api-manager
Version:
poe.ninja and poe.watch API
17 lines (16 loc) • 549 B
TypeScript
import CustomError from "./CustomError";
/**
* Represents an API error with a message, status code, and additional details.
* @class
* @extends {CustomError}
*/
export default class ValidationError extends CustomError {
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);
}