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