logeIfThrow

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

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

Parameters

msg

message

action

do something with throwable

See also