app.cash.paparazzi.gradle.reporting.ErroringAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paparazzi-gradle-plugin Show documentation
Show all versions of paparazzi-gradle-plugin Show documentation
A Gradle plugin to set up the Paparazzi test library
The newest version!
package app.cash.paparazzi.gradle.reporting
import org.gradle.api.Action
internal abstract class ErroringAction : Action {
override fun execute(thing: T) {
try {
doExecute(thing)
} catch (e: Exception) {
if (e is RuntimeException) throw e
throw RuntimeException(e)
}
}
@Throws(Exception::class)
protected abstract fun doExecute(thing: T)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy