logwxIfThrow

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

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

Parameters

msg

message

action

do something with throwable

See also