logwIfThrow

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

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

Parameters

msg

message

action

do something with throwable

See also