# Class: HoyolabError
Represents an error that can be thrown during interactions with the Hoyolab API.
# Hierarchy
Error
↳
HoyolabError
# Table of contents
# Constructors
# Properties
# Methods
# Constructors
# constructor
• new HoyolabError(message
)
Constructs a new instance of the HoyolabError class with the specified message.
# Parameters
Name | Type | Description |
---|---|---|
message | string | The message to associate with this error. |
# Overrides
Error.constructor
# Defined in
src/utils/error.ts:23 (opens new window)
# Properties
# message
• Readonly
message: string
The message associated with this error.
# Overrides
Error.message
# Defined in
src/utils/error.ts:16 (opens new window)
# name
• Readonly
name: string
The name of this error.
# Overrides
Error.name
# Defined in
src/utils/error.ts:11 (opens new window)
# stack
• Optional
stack: string
# Inherited from
Error.stack
# Defined in
node_modules/typescript/lib/lib.es5.d.ts:1056
# prepareStackTrace
▪ Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
# Type declaration
▸ (err
, stackTraces
): any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
# Parameters
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
# Returns
any
# Inherited from
Error.prepareStackTrace
# Defined in
node_modules/@types/node/globals.d.ts:11
# stackTraceLimit
▪ Static
stackTraceLimit: number
# Inherited from
Error.stackTraceLimit
# Defined in
node_modules/@types/node/globals.d.ts:13
# Methods
# captureStackTrace
▸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
# Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
# Returns
void
# Inherited from
Error.captureStackTrace
# Defined in
node_modules/@types/node/globals.d.ts:4
← Language DailyModule →