ApiResult
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ApiResult
core
/
pro.respawn.apiresult
/
errorIf
error
If
inline
fun
<
T
>
ApiResult
<
T
>
.
errorIf
(
exception
:
(
T
)
->
Exception
=
{ ConditionNotSatisfiedException() }
,
predicate
:
(
T
)
->
Boolean
)
:
ApiResult
<
T
>
Makes
this
an
Error
if
predicate
returns true
See also
error
Unless