Constructs a new instance of the HoyolabError class with the specified message.
The message to associate with this error.
Optionalcode: numberThe error code to associate with this error.
Optionalhttp: IHTTPErrorThe HTTP object to associate with this error.
OptionalcauseOptional ReadonlycodeThe error code
Optional ReadonlyhttpThe HTTP object
ReadonlymessageThe message associated with this error.
ReadonlynameThe name of this error.
OptionalstackStatic OptionalprepareOptional override for formatting stack traces
Staticstack
Represents an error that can be thrown during interactions with the Hoyolab API.