Presto
GitHub
Getting Started
Packages
View Model
Final Form
REST
Endpoint
ApiError
Endpoint
mergeRequestInit
MiddlewareContext
SkipToResponse
Middleware
batchMiddleware
dedupeInFlightRequestsMiddleware
detectBadPaginationMiddleware
paginationMiddleware
requestDefaultsMiddleware
viewModelCachingMiddleware
Routing
UI
UI ANTD
Util
On this page
API
Methods
prepareStackTrace
Properties
content
message
name
stack
status
statusText
Static Methods
captureStackTrace
Static Properties
stackTraceLimit
ApiError
Source
import { ApiError } from "@prestojs/rest";
API
Show inherited
Constructor
new ApiError
(
status
,
statusText
,
content
)
Source
Arguments:
Argument
Type
Description
*
status
number
*
statusText
string
*
content
any
Methods
prepareStackTrace
(
err
,
stackTraces
)
Source
Arguments:
Argument
Type
Description
*
err
Error
*
stackTraces
CallSite
[]
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:
Argument
Type
Description
*
targetObject
object
constructorOpt
Function
Returns:
void
Static Properties
stackTraceLimit
Source
number