public class CompositeException extends Exception implements Iterable<Throwable>
| Constructor and Description |
|---|
CompositeException() |
| Modifier and Type | Method and Description |
|---|---|
<T,U,X extends Exception> |
accept(ThrowingBiConsumer<T,U,X> consumer,
T t,
U u) |
<T,X extends Exception> |
accept(ThrowingConsumer<T,X> consumer,
T t) |
<A,B,C,X extends Exception> |
accept(ThrowingTriConsumer<A,B,C,X> consumer,
A a,
B b,
C c) |
void |
add(Collection<? extends Throwable> throwables) |
void |
add(Throwable throwable) |
<T,U,R,X extends Exception> |
apply(ThrowingBiFunction<T,U,R,X> function,
T t,
U u) |
<T,R,X extends Exception> |
apply(ThrowingFunction<T,R,X> function,
T t) |
<T> Optional<T> |
call(Callable<T> callable) |
<T,X extends Exception> |
call(ThrowingCallable<T,X> callable) |
void |
forEach(Consumer<? super Throwable> action) |
<T,X extends Exception> |
get(ThrowingSupplier<T,X> supplier) |
List<Throwable> |
getExceptions() |
boolean |
hasExceptions() |
boolean |
isEmpty() |
Iterator<Throwable> |
iterator() |
<X extends Exception> |
run(ThrowingRunnable<X> runnable) |
int |
size() |
Spliterator<Throwable> |
spliterator() |
Stream<Throwable> |
stream() |
<T,U,X extends Exception> |
test(ThrowingBiPredicate<T,U,X> predicate,
boolean defaultValue,
T t,
U u) |
<T,X extends Exception> |
test(ThrowingPredicate<T,X> predicate,
boolean defaultValue,
T t) |
<X extends Exception> |
throwCause(Class<? extends X> type) |
void |
throwIfNotEmpty() |
<X extends Throwable> |
throwIfNotEmpty(Function<? super CompositeException,X> factory) |
<T> Supplier<Optional<T>> |
wrapCallable(Callable<T> callable) |
<T,X extends Exception> |
wrapCallable(ThrowingCallable<T,X> callable) |
<T,U,X extends Exception> |
wrapConsumer(ThrowingBiConsumer<T,U,X> consumer) |
<T,X extends Exception> |
wrapConsumer(ThrowingConsumer<T,X> consumer) |
<A,B,C,X extends Exception> |
wrapConsumer(ThrowingTriConsumer<A,B,C,X> consumer) |
<T,U,R,X extends Exception> |
wrapFunction(ThrowingBiFunction<T,U,R,X> function) |
<T,R,X extends Exception> |
wrapFunction(ThrowingFunction<T,R,X> function) |
<T,X extends Exception> |
wrapOperator(ThrowingUnaryOperator<T,X> operator) |
<T,U,X extends Exception> |
wrapPredicate(ThrowingBiPredicate<T,U,X> predicate,
boolean defaultValue) |
<T,X extends Exception> |
wrapPredicate(ThrowingPredicate<T,X> predicate,
boolean defaultValue) |
<X extends Exception> |
wrapRunnable(ThrowingRunnable<X> runnable) |
<T,X extends Exception> |
wrapSupplier(ThrowingSupplier<T,X> supplier) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic int size()
public void add(Throwable throwable)
public void add(Collection<? extends Throwable> throwables)
public boolean isEmpty()
public boolean hasExceptions()
public void throwIfNotEmpty()
throws CompositeException
CompositeExceptionpublic <X extends Throwable> void throwIfNotEmpty(Function<? super CompositeException,X> factory) throws X extends Throwable
X extends Throwablepublic <X extends Exception> void throwCause(Class<? extends X> type) throws X extends Exception
X extends Exceptionpublic Spliterator<Throwable> spliterator()
spliterator in interface Iterable<Throwable>public <X extends Exception> Runnable wrapRunnable(ThrowingRunnable<X> runnable)
public <T,X extends Exception> Supplier<Optional<T>> wrapCallable(ThrowingCallable<T,X> callable)
public <T,X extends Exception> Consumer<T> wrapConsumer(ThrowingConsumer<T,X> consumer)
public <T,U,X extends Exception> BiConsumer<T,U> wrapConsumer(ThrowingBiConsumer<T,U,X> consumer)
public <A,B,C,X extends Exception> TriConsumer<A,B,C> wrapConsumer(ThrowingTriConsumer<A,B,C,X> consumer)
public <T,R,X extends Exception> Function<T,Optional<R>> wrapFunction(ThrowingFunction<T,R,X> function)
public <T,U,R,X extends Exception> BiFunction<T,U,Optional<R>> wrapFunction(ThrowingBiFunction<T,U,R,X> function)
public <T,X extends Exception> Function<T,Optional<T>> wrapOperator(ThrowingUnaryOperator<T,X> operator)
public <T,X extends Exception> Supplier<Optional<T>> wrapSupplier(ThrowingSupplier<T,X> supplier)
public <T,X extends Exception> Predicate<T> wrapPredicate(ThrowingPredicate<T,X> predicate, boolean defaultValue)
public <T,U,X extends Exception> BiPredicate<T,U> wrapPredicate(ThrowingBiPredicate<T,U,X> predicate, boolean defaultValue)
public <X extends Exception> void run(ThrowingRunnable<X> runnable)
public <T,X extends Exception> Optional<T> call(ThrowingCallable<T,X> callable)
public <T,X extends Exception> void accept(ThrowingConsumer<T,X> consumer, T t)
public <T,U,X extends Exception> void accept(ThrowingBiConsumer<T,U,X> consumer, T t, U u)
public <A,B,C,X extends Exception> void accept(ThrowingTriConsumer<A,B,C,X> consumer, A a, B b, C c)
public <T,R,X extends Exception> Optional<R> apply(ThrowingFunction<T,R,X> function, T t)
public <T,U,R,X extends Exception> Optional<R> apply(ThrowingBiFunction<T,U,R,X> function, T t, U u)
public <T,X extends Exception> Optional<T> get(ThrowingSupplier<T,X> supplier)
public <T,X extends Exception> boolean test(ThrowingPredicate<T,X> predicate, boolean defaultValue, T t)
public <T,U,X extends Exception> boolean test(ThrowingBiPredicate<T,U,X> predicate, boolean defaultValue, T t, U u)
Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.