ktkit
Toggle table of contents
0.8.0
common
Target filter
common
Switch theme
Search in API
Skip to content
ktkit
ktkit-ktor-httpclient
/
io.github.smyrgeorge.ktkit.ktor.httpclient
/
RestErrorMapper
/
Companion
/
of
of
inline
fun
<
E
:
ErrorSpec
,
reified
P
:
Any
>
of
(
unauthorized
:
E
?
=
null
,
noinline
apiError
:
(
P
,
HttpStatusCode
)
->
E
,
noinline
networkError
:
(
Throwable
)
->
E
,
noinline
parseError
:
(
Throwable
)
->
E
)
:
RestErrorMapper
<
E
,
P
>
(
source
)