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