Searched refs:TryExpr (Results 1 – 1 of 1) sorted by relevance
77 fun <T> tryTest(block: () -> T) = TryExpr( in <lambda>()87 inline class TryExpr<T>(val result: Result<T>) { class88 inline infix fun <reified E : Throwable> catch(block: (E) -> T): TryExpr<T> { in catch()91 return TryExpr(try { in catch()99 inline infix fun cleanupStep(block: () -> Unit): TryExpr<T> { in cleanupStep()104 return TryExpr(if (null == originalException) { in cleanupStep()