-
public final class Exceptions
-
-
Method Summary
Modifier and Type Method Description static void
throwIfFatal(Throwable t)
static void
throwIfAny(List<out Throwable> exceptions)
static void
addCause(Throwable e, Throwable cause)
static Throwable
getFinalCause(Throwable e)
Get the {@code Throwable}
at the end of the causality-chain for a particular{@code Throwable}
static void
throwOrReport(Throwable t, Observer<out Object> o, Object value)
static void
throwOrReport(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
-
-
-
-