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.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MantleClientError(
message,code,name,fields?):MantleClientError
Defined in: errors.ts:33
Parameters
Section titled “Parameters”message
Section titled “message”string
number
string
fields?
Section titled “fields?”Returns
Section titled “Returns”MantleClientError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”className?
Section titled “className?”
readonlyoptionalclassName?:string
Defined in: errors.ts:28
readonlycode:number
Defined in: errors.ts:27
readonlyoptionaldata?:unknown
Defined in: errors.ts:29
errors?
Section titled “errors?”
readonlyoptionalerrors?:unknown[]
Defined in: errors.ts:30
readonlyoptionalhint?:string
Defined in: errors.ts:31