ApiError

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

API

Constructor

new ApiError(status,statusText,content)
Source

Arguments:

ArgumentTypeDescription
*statusnumber
*statusTextstring
*contentany

Methods

prepareStackTrace(err,stackTraces)
Source

Arguments:

ArgumentTypeDescription
*errError
*stackTracesCallSite[]
Returns:any

Properties

content

Source
any

message

Source
string

name

Source
string

stack

Source
string

status

Source
number

statusText

Source
string

Static Methods

captureStackTrace(targetObject,?constructorOpt)
Source

Arguments:

ArgumentTypeDescription
*targetObjectobject
constructorOptFunction
Returns:void

Static Properties

stackTraceLimit

Source
number