Skip to content

GeneralError

Defined in: errors.ts:82

new GeneralError(message?, data?, errors?, hint?): GeneralError

Defined in: errors.ts:83

string = "General Error"

unknown

unknown[]

string

GeneralError

MantleError.constructor

readonly className: string

Defined in: errors.ts:3

MantleError.className


readonly code: number

Defined in: errors.ts:2

MantleError.code


readonly optional data?: unknown

Defined in: errors.ts:4

MantleError.data


readonly optional errors?: unknown[]

Defined in: errors.ts:5

MantleError.errors


readonly optional hint?: string

Defined in: errors.ts:7

Actionable guidance for the caller — what to change so the request succeeds. Serialized in toJSON().

MantleError.hint

toJSON(): Record<string, unknown>

Defined in: errors.ts:20

Record<string, unknown>

MantleError.toJSON