logdxIfThrow

inline fun <R> Result<R>.logdxIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.dx to log if throw Throwable

Parameters

msg

message

action

do something with throwable

See also