public final class Throwables
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Throwables.DiscreteAction<E extends java.lang.Exception> |
static class |
Throwables.FileOpType |
Constructor and Description |
---|
Throwables() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Throwable |
close(java.lang.Throwable accumulate,
java.lang.Iterable<? extends java.lang.AutoCloseable> closeables) |
static <T extends java.lang.Throwable> |
failIfCanCast(java.lang.Throwable fail,
java.lang.Class<T> checked) |
static void |
maybeFail(java.lang.Throwable fail) |
static <T extends java.lang.Throwable> |
maybeFail(java.lang.Throwable fail,
java.lang.Class<T> checked) |
static <T extends java.lang.Throwable> |
merge(T existingFail,
T newFail) |
static void |
perform(java.io.File against,
Throwables.FileOpType opType,
Throwables.DiscreteAction<? extends java.io.IOException>... actions) |
static <E extends java.lang.Exception> |
perform(java.util.stream.Stream<? extends Throwables.DiscreteAction<? extends E>> stream,
Throwables.DiscreteAction<? extends E>... extra) |
static <E extends java.lang.Exception> |
perform(java.util.stream.Stream<Throwables.DiscreteAction<? extends E>> actions) |
static void |
perform(java.lang.String filePath,
Throwables.FileOpType opType,
Throwables.DiscreteAction<? extends java.io.IOException>... actions) |
static java.lang.Throwable |
perform(java.lang.Throwable accumulate,
java.util.Iterator<? extends Throwables.DiscreteAction<?>> actions) |
static <E extends java.lang.Exception> |
perform(Throwables.DiscreteAction<? extends E>... actions) |
static java.lang.Throwable |
perform(java.lang.Throwable accumulate,
java.util.stream.Stream<? extends Throwables.DiscreteAction<?>> actions) |
static java.lang.Throwable |
perform(java.lang.Throwable accumulate,
java.lang.String filePath,
Throwables.FileOpType opType,
java.util.stream.Stream<Throwables.DiscreteAction<? extends java.io.IOException>> actions) |
static java.lang.Throwable |
perform(java.lang.Throwable accumulate,
java.lang.String filePath,
Throwables.FileOpType opType,
Throwables.DiscreteAction<? extends java.io.IOException>... actions) |
static java.lang.Throwable |
perform(java.lang.Throwable accumulate,
Throwables.DiscreteAction<?>... actions) |
public static <T extends java.lang.Throwable> T merge(T existingFail, T newFail)
public static void maybeFail(java.lang.Throwable fail)
public static <T extends java.lang.Throwable> void maybeFail(java.lang.Throwable fail, java.lang.Class<T> checked) throws T extends java.lang.Throwable
T extends java.lang.Throwable
public static <T extends java.lang.Throwable> boolean failIfCanCast(java.lang.Throwable fail, java.lang.Class<T> checked) throws T extends java.lang.Throwable
T extends java.lang.Throwable
@SafeVarargs public static <E extends java.lang.Exception> void perform(Throwables.DiscreteAction<? extends E>... actions) throws E extends java.lang.Exception
E extends java.lang.Exception
public static <E extends java.lang.Exception> void perform(java.util.stream.Stream<? extends Throwables.DiscreteAction<? extends E>> stream, Throwables.DiscreteAction<? extends E>... extra) throws E extends java.lang.Exception
E extends java.lang.Exception
public static <E extends java.lang.Exception> void perform(java.util.stream.Stream<Throwables.DiscreteAction<? extends E>> actions) throws E extends java.lang.Exception
E extends java.lang.Exception
public static java.lang.Throwable perform(java.lang.Throwable accumulate, Throwables.DiscreteAction<?>... actions)
public static java.lang.Throwable perform(java.lang.Throwable accumulate, java.util.stream.Stream<? extends Throwables.DiscreteAction<?>> actions)
public static java.lang.Throwable perform(java.lang.Throwable accumulate, java.util.Iterator<? extends Throwables.DiscreteAction<?>> actions)
@SafeVarargs public static void perform(java.io.File against, Throwables.FileOpType opType, Throwables.DiscreteAction<? extends java.io.IOException>... actions)
@SafeVarargs public static void perform(java.lang.String filePath, Throwables.FileOpType opType, Throwables.DiscreteAction<? extends java.io.IOException>... actions)
@SafeVarargs public static java.lang.Throwable perform(java.lang.Throwable accumulate, java.lang.String filePath, Throwables.FileOpType opType, Throwables.DiscreteAction<? extends java.io.IOException>... actions)
public static java.lang.Throwable perform(java.lang.Throwable accumulate, java.lang.String filePath, Throwables.FileOpType opType, java.util.stream.Stream<Throwables.DiscreteAction<? extends java.io.IOException>> actions)
public static java.lang.Throwable close(java.lang.Throwable accumulate, java.lang.Iterable<? extends java.lang.AutoCloseable> closeables)
Copyright © 2015 The Apache Software Foundation