kit
GitHub
npm
Preparing search index...
@knitkode/api
ApiError
ApiError
Class ApiError<TResponseFail>
Custom
ApiError
class extending
Error
to throw in failed response.
See
https://eslint.org/docs/rules/no-throw-literal
https://github.com/sindresorhus/ky/blob/main/source/errors/HTTPError.ts
Type Parameters
TResponseFail
extends
ResponseFail
=
unknown
Hierarchy
Error
ApiError
Index
Constructors
constructor
Constructors
constructor
new
ApiError
<
TResponseFail
extends
unknown
=
unknown
>
(
result
:
ResultFail
<
TResponseFail
>
,
)
:
ApiError
<
TResponseFail
>
Type Parameters
TResponseFail
extends
unknown
=
unknown
Parameters
result
:
ResultFail
<
TResponseFail
>
Returns
ApiError
<
TResponseFail
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
GitHub
npm
kit
Loading...
Custom
ApiErrorclass extendingErrorto throw in failed response.See