diff --git a/core/src/main/kotlin/com/r3corda/core/Utils.kt b/core/src/main/kotlin/com/r3corda/core/Utils.kt index 7d6956a842..df59864386 100644 --- a/core/src/main/kotlin/com/r3corda/core/Utils.kt +++ b/core/src/main/kotlin/com/r3corda/core/Utils.kt @@ -1,5 +1,6 @@ package com.r3corda.core +import com.google.common.base.Throwables import com.google.common.io.ByteStreams import com.google.common.util.concurrent.ListenableFuture import com.google.common.util.concurrent.MoreExecutors @@ -215,3 +216,5 @@ fun extractZipFile(zipPath: Path, toPath: Path) { } // TODO: Generic csv printing utility for clases. + +val Throwable.rootCause: Throwable get() = Throwables.getRootCause(this) \ No newline at end of file