gradle-spoon-plugin / com.jaredsburrows.spoon / UncheckedException

UncheckedException

class UncheckedException : RuntimeException

Wraps a checked exception. Carries no other context.

Taken from: https://github.com/gradle/gradle/blob/master/subprojects/base-services/src/main/java/org/gradle/internal/UncheckedException.java

Constructors

<init>

UncheckedException(cause: Throwable)
UncheckedException(message: String, cause: Throwable)

Companion Object Functions

throwAsUncheckedException

Note: always throws the failure in some form. The return value is to keep the compiler happy.

fun throwAsUncheckedException(throwable: Throwable, preserveMessage: Boolean = false): RuntimeException