Constructs a new instance of the HoyolabError class with the specified message.
The message to associate with this error.
Optional
code: numberThe error code to associate with this error.
Optional
http: IHTTPErrorThe HTTP object to associate with this error.
Optional
causeOptional
Readonly
codeThe error code
Optional
Readonly
httpThe HTTP object
Readonly
messageThe message associated with this error.
Readonly
nameThe name of this error.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stack
Represents an error that can be thrown during interactions with the Hoyolab API.