Skip to content

MantleError

Defined in: errors.ts:1

  • Error

new MantleError(message, code, className, data?, errors?, hint?): MantleError

Defined in: errors.ts:9

string

number

string

unknown

unknown[]

string

MantleError

Error.constructor

readonly className: string

Defined in: errors.ts:3


readonly code: number

Defined in: errors.ts:2


readonly optional data?: unknown

Defined in: errors.ts:4


readonly optional errors?: unknown[]

Defined in: errors.ts:5


readonly optional hint?: string

Defined in: errors.ts:7

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

toJSON(): Record<string, unknown>

Defined in: errors.ts:20

Record<string, unknown>