kinetex - v1.0.0-rc.1
Preparing search index...
ErrorInterceptor
Type Alias ErrorInterceptor
ErrorInterceptor
:
(
ctx
:
InterceptorContext
,
)
=>
|
void
|
KinetexResponse
<
unknown
>
|
Promise
<
void
|
KinetexResponse
<
unknown
>
>
An interceptor that can recover from errors.
Return values:
void
— rethrow the error
KinetexResponse
— recover with a synthetic response
throw — replace with a different error
Type Declaration
(
ctx
:
InterceptorContext
,
)
:
|
void
|
KinetexResponse
<
unknown
>
|
Promise
<
void
|
KinetexResponse
<
unknown
>
>
Parameters
ctx
:
InterceptorContext
Returns
void
|
KinetexResponse
<
unknown
>
|
Promise
<
void
|
KinetexResponse
<
unknown
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
JSR
kinetex - v1.0.0-rc.1
Loading...
An interceptor that can recover from errors.
Return values:
void— rethrow the errorKinetexResponse— recover with a synthetic response