public abstract class MoreThrowables extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
getFirstNotNullRecord(Throwable throwable) |
static RuntimeException |
propagate(InterruptedException ie) |
static RuntimeException |
propagate(String record,
InterruptedException ie)
|
public static RuntimeException propagate(String record, InterruptedException ie)
record - ie - RuntimeException - With the InterruptedException as the cause.public static RuntimeException propagate(InterruptedException ie)
ie - propagate(String, InterruptedException)public static Optional<String> getFirstNotNullRecord(Throwable throwable)
throwable - Throwable.getMessage() in the exception chain (if any in the
chain do have it).Copyright © 2018. All rights reserved.