mirror of
https://github.com/corda/corda.git
synced 2025-04-12 05:40:48 +00:00
Minor: add a rootCause property to Throwable
This commit is contained in:
parent
b8dc755926
commit
709fe096b3
@ -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)
|
Loading…
x
Reference in New Issue
Block a user