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
<init> |
UncheckedException(cause: Throwable)UncheckedException(message: String, cause: Throwable) |
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 |