Skip to content

MantleClientError

Defined in: errors.ts:26

Client-side counterpart of the server’s MantleError JSON format. name mirrors the server error class ("NotFound", "BadRequest", …), code the HTTP status. hint, when present, is the server’s actionable guidance on how to make the request succeed.

  • Error

new MantleClientError(message, code, name, fields?): MantleClientError

Defined in: errors.ts:33

string

number

string

MantleClientErrorFields = {}

MantleClientError

Error.constructor

readonly optional className?: string

Defined in: errors.ts:28


readonly code: number

Defined in: errors.ts:27


readonly optional data?: unknown

Defined in: errors.ts:29


readonly optional errors?: unknown[]

Defined in: errors.ts:30


readonly optional hint?: string

Defined in: errors.ts:31