ApiError

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

API

Constructor

new ApiError(status,statusText,content)

Arguments:

ArgumentTypeDescription
*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)

Arguments:

ArgumentTypeDescription
*targetObjectobject
constructorOptFunction
Returns:void
prepareStackTrace(err,stackTraces)

Arguments:

ArgumentTypeDescription
*errError
*stackTracesCallSite[]
Returns:any

Static Properties

stackTraceLimit

Source
number