public final class Exceptions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.RuntimeException |
launderThrowable(java.lang.Throwable t)
Coerce an unchecked Throwable to a RuntimeException:
If the Throwable is an Error, throw it.
If it is a
RuntimeException return it.
Otherwise, throw IllegalStateException .
|
public static java.lang.RuntimeException launderThrowable(java.lang.Throwable t)
RuntimeException
return it.IllegalStateException
.t
- Original throwable.Copyright © 2018. All Rights Reserved.