Package io.github.oliviercailloux.exceptions
-
Interface Summary Interface Description Throwing Variations on the standard functional interfaces which throw a specific subclass of Throwable.Throwing.BiConsumer<T,U,E extends java.lang.Throwable> Throwing.BiFunction<T,U,R,E extends java.lang.Throwable> Throwing.BiPredicate<T,U,E extends java.lang.Throwable> Throwing.Consumer<T,E extends java.lang.Throwable> Throwing.Function<T,R,E extends java.lang.Throwable> Throwing.Predicate<T,E extends java.lang.Throwable> Throwing.Runnable<E extends java.lang.Throwable> Throwing.Supplier<T,E extends java.lang.Throwable> -
Class Summary Class Description Try<T> An instance of this class keeps either a result (in which case it is called a “success”) or a cause of typeThrowable
(in which case it is called a “failure”).TryVoid An instance of this class represents either a “success” or a “failure”, in which case it encapsulates a cause of typeThrowable
.Unchecker<EF extends java.lang.Exception,ET extends java.lang.RuntimeException> An object able to transform functional interfaces that throw checked exceptions to functional interfaces that throw only runtime exceptions; and able to invoke function interfaces that throw checked exceptions.