All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.zegreatrob.testmints.CaptureException.kt Maven / Gradle / Ivy

package com.zegreatrob.testmints

inline fun captureException(work: () -> Unit) = try {
    work()
    null
} catch (expectedFailure: Throwable) {
    expectedFailure
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy