MantleError
Defined in: errors.ts:1
Extends
Section titled “Extends”Error
Extended by
Section titled “Extended by”BadRequestNotAuthenticatedForbiddenNotFoundMethodNotAllowedConflictUnprocessableTooManyRequestsGeneralErrorNotImplementedUnavailableCodeExecutorFaultCodeLimitExceededCodeOutputTooLargeCodeScriptErrorCodeTimeout
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MantleError(
message,code,className,data?,errors?,hint?):MantleError
Defined in: errors.ts:9
Parameters
Section titled “Parameters”message
Section titled “message”string
number
className
Section titled “className”string
unknown
errors?
Section titled “errors?”unknown[]
string
Returns
Section titled “Returns”MantleError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”className
Section titled “className”
readonlyclassName:string
Defined in: errors.ts:3
readonlycode:number
Defined in: errors.ts:2
readonlyoptionaldata?:unknown
Defined in: errors.ts:4
errors?
Section titled “errors?”
readonlyoptionalerrors?:unknown[]
Defined in: errors.ts:5
readonlyoptionalhint?:string
Defined in: errors.ts:7
Actionable guidance for the caller — what to change so the request succeeds. Serialized in toJSON().
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON():
Record<string,unknown>
Defined in: errors.ts:20
Returns
Section titled “Returns”Record<string, unknown>