ApiResult
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ApiResult
core
/
pro.respawn.apiresult
/
errorOnNull
error
On
Null
inline
fun
<
T
:
Any
>
ApiResult
<
T
?
>
?
.
errorOnNull
(
exception
:
(
)
->
Exception
=
{ ConditionNotSatisfiedException("Value was null") }
)
:
ApiResult
<
T
>
Make this result an
Error
if
Success
value was null.
See also
error
Unless
error
If
error
If
Empty