-
public final class Exceptions
-
-
Method Summary
Modifier and Type Method Description static voidthrowIfFatal(Throwable t)static voidthrowIfAny(List<out Throwable> exceptions)static voidaddCause(Throwable e, Throwable cause)static ThrowablegetFinalCause(Throwable e)Get the {@code Throwable}at the end of the causality-chain for a particular{@code Throwable}static voidthrowOrReport(Throwable t, Observer<out Object> o, Object value)static voidthrowOrReport(Throwable t, Observer<out Object> o)Forwards a fatal exception or reports it to the given Observer. -
-
Method Detail
-
throwIfFatal
static void throwIfFatal(Throwable t)
-
throwIfAny
static void throwIfAny(List<out Throwable> exceptions)
-
getFinalCause
static Throwable getFinalCause(Throwable e)
Get the
{@code Throwable}at the end of the causality-chain for a particular{@code Throwable}- Parameters:
e- the{@code Throwable}whose final cause you are curious about
-
throwOrReport
static void throwOrReport(Throwable t, Observer<out Object> o, Object value)
-
throwOrReport
static void throwOrReport(Throwable t, Observer<out Object> o)
Forwards a fatal exception or reports it to the given Observer.
- Parameters:
t- the exceptiono- the observer to report to
-
-
-
-