toggle menu
core
2.0.0-beta02
common
switch theme
search in API
core
/
pro.respawn.apiresult
/
errorIf
error
If
inline
fun
<
T
>
ApiResult
<
T
>
.
errorIf
(
exception
:
(
)
->
Exception
=
{ ConditionNotSatisfiedException() }
,
predicate
:
(
T
)
->
Boolean
)
:
ApiResult
<
T
>
Makes
this
an
Error
if
predicate
returns true
See also
error
Unless