logixIfThrow

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

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

Parameters

msg

message

action

do something with throwable

See also