UNPKG

node-hoyolab

Version:

node-hoyolab is an unofficial API Wrapper library developed to integrate with the Hoyolab, which provides a more convenient way to access the Hoyolab API.

34 lines (33 loc) 898 B
import { IHTTPError } from './error.inteface'; /** * Represents an error that can be thrown during interactions with the Hoyolab API. * * @class * @category Main */ export declare class NodeHoyoError extends Error { /** * The name of this error. */ readonly name: string; /** * The message associated with this error. */ readonly message: string; /** * The HTTP object */ readonly http?: IHTTPError; /** * The error code */ readonly code?: number; /** * Constructs a new instance of the HoyolabError class with the specified message. * * @param message The message to associate with this error. * @param code The error code to associate with this error. * @param http The HTTP object to associate with this error. */ constructor(message: string, code?: number, http?: IHTTPError); }