ApiError

Source
import { ApiError } from "@prestojs/rest";
Hierarchy

API

Constructor

new ApiError(status,statusText,content)
Params:
ParameterTypeDescription
*statusnumber
*statusTextstring
*contentany

Properties

content

Source
any

message

Source
string

name

Source
string

stack

Source
string

status

Source
number

statusText

Source
string

Static Methods

captureStackTrace(targetObject,?constructorOpt)
Params:
ParameterTypeDescription
*targetObjectobject
constructorOptFunction
Returns:void
prepareStackTrace(err,stackTraces)
Params:
ParameterTypeDescription
*errError
*stackTracesCallSite[]
Returns:any

Static Properties

stackTraceLimit

Source
number