//
koffee-backend
/
eu.yeger.koffee.model.dto
/
mapFailureStatus
mapFailureStatus
Transforms the failure status of
Result
s if they are
Result.Failure
s.
Return
The new
Result
.
Author
Jan Müller
Parameters
<receiver>
The source
Result
.
T
The
Result
type.
transformation
The transformation operation.
suspend fun <
T
:
Any
>
Result
<
T
>.
mapFailureStatus
(transformation:
SuspendFunction1
<
HttpStatusCode
,
HttpStatusCode
>):
Result
<
T
>
Content copied to clipboard