reaktive
Toggle table of contents
2.4.0
common
Platform filter
common
Switch theme
Search in API
reaktive
reaktive
/
com.badoo.reaktive.base
/
ErrorCallback
Error
Callback
interface
ErrorCallback
A common callback for listening for exceptions
Inheritors
CompletableCallbacks
SingleCallbacks
Members
Members & Extensions
Functions
on
Error
Link copied to clipboard
abstract
fun
onError
(
error
:
Throwable
)
Called when there is an exception occurred
try
Catch
Link copied to clipboard
inline
fun
ErrorCallback
.
tryCatch
(
errorTransformer
:
(
Throwable
)
->
Throwable
=
{ it }
,
block
:
(
)
->
Unit
)
inline
fun
<
T
>
ErrorCallback
.
tryCatch
(
block
:
(
)
->
T
,
errorTransformer
:
(
Throwable
)
->
Throwable
=
{ it }
,
onSuccess
:
(
T
)
->
Unit
)