Minor: add a rootCause property to Throwable

This commit is contained in:
Mike Hearn 2016-08-11 16:29:05 +02:00
parent b8dc755926
commit 709fe096b3

View File

@ -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)