Modifier and Type | Class and Description |
---|---|
static interface |
Exceptions.FormatArgs
Callback interface that collects format arguments in conditional raise* method variants.
|
Modifier and Type | Method and Description |
---|---|
static Throwable |
causeOf(Throwable t)
Extract cause from
InvocationTargetException s. |
static <E extends Exception,C extends Throwable> |
create(BiFunction<? super String,? super C,? extends E> fn,
C cause,
String format,
Object... args) |
static <E extends Exception,C extends Throwable> |
create(BiFunction<? super String,? super C,? extends E> fn,
C cause,
Supplier<String> message) |
static <E extends Exception> |
create(Function<? super String,? extends E> fn,
String format,
Object... args) |
static <E extends Exception> |
create(Function<? super String,? extends E> fn,
Supplier<String> message) |
static <E extends Exception,C extends Throwable,R> |
raise(BiFunction<? super String,? super C,? extends E> fn,
C cause,
String format,
Object... args) |
static <E extends Exception,C extends Throwable,R> |
raise(BiFunction<? super String,? super C,? extends E> fn,
C cause,
Supplier<String> message) |
static <E extends Exception,R> |
raise(Function<? super String,? extends E> fn,
String format,
Object... args) |
static <E extends Exception,R> |
raise(Function<? super String,? extends E> fn,
Supplier<String> message) |
static <E extends Exception,C extends Throwable> |
raiseIf(boolean condition,
BiFunction<? super String,? super C,? extends E> fn,
C cause,
String format,
Consumer<Exceptions.FormatArgs> argsProvider) |
static <E extends Exception,C extends Throwable> |
raiseIf(boolean condition,
BiFunction<? super String,? super C,? extends E> fn,
C cause,
String format,
Object... args) |
static <E extends Exception,C extends Throwable> |
raiseIf(boolean condition,
BiFunction<? super String,? super C,? extends E> fn,
C cause,
Supplier<String> message) |
static <E extends Exception> |
raiseIf(boolean condition,
Function<? super String,? extends E> fn,
String format,
Consumer<Exceptions.FormatArgs> argsProvider) |
static <E extends Exception> |
raiseIf(boolean condition,
Function<? super String,? extends E> fn,
String format,
Object... args) |
static <E extends Exception> |
raiseIf(boolean condition,
Function<? super String,? extends E> fn,
Supplier<String> message) |
static <E extends Exception,C extends Throwable> |
raiseUnless(boolean condition,
BiFunction<? super String,? super C,? extends E> fn,
C cause,
String format,
Consumer<Exceptions.FormatArgs> argsProvider) |
static <E extends Exception,C extends Throwable> |
raiseUnless(boolean condition,
BiFunction<? super String,? super C,? extends E> fn,
C cause,
String format,
Object... args) |
static <E extends Exception,C extends Throwable> |
raiseUnless(boolean condition,
BiFunction<? super String,? super C,? extends E> fn,
C cause,
Supplier<String> message) |
static <E extends Exception> |
raiseUnless(boolean condition,
Function<? super String,? extends E> fn,
String format,
Consumer<Exceptions.FormatArgs> argsProvider) |
static <E extends Exception> |
raiseUnless(boolean condition,
Function<? super String,? extends E> fn,
String format,
Object... args) |
static <E extends Exception> |
raiseUnless(boolean condition,
Function<? super String,? extends E> fn,
Supplier<String> message) |
public static <E extends Exception> E create(Function<? super String,? extends E> fn, String format, Object... args)
public static <E extends Exception,C extends Throwable> E create(BiFunction<? super String,? super C,? extends E> fn, C cause, String format, Object... args)
public static <E extends Exception> E create(Function<? super String,? extends E> fn, Supplier<String> message)
public static <E extends Exception,C extends Throwable> E create(BiFunction<? super String,? super C,? extends E> fn, C cause, Supplier<String> message)
public static <E extends Exception,R> R raise(Function<? super String,? extends E> fn, String format, Object... args) throws E extends Exception
E extends Exception
public static <E extends Exception> void raiseIf(boolean condition, Function<? super String,? extends E> fn, String format, Object... args) throws E extends Exception
E extends Exception
public static <E extends Exception> void raiseUnless(boolean condition, Function<? super String,? extends E> fn, String format, Object... args) throws E extends Exception
E extends Exception
public static <E extends Exception,R> R raise(Function<? super String,? extends E> fn, Supplier<String> message) throws E extends Exception
E extends Exception
public static <E extends Exception> void raiseIf(boolean condition, Function<? super String,? extends E> fn, String format, Consumer<Exceptions.FormatArgs> argsProvider) throws E extends Exception
E extends Exception
public static <E extends Exception> void raiseIf(boolean condition, Function<? super String,? extends E> fn, Supplier<String> message) throws E extends Exception
E extends Exception
public static <E extends Exception> void raiseUnless(boolean condition, Function<? super String,? extends E> fn, String format, Consumer<Exceptions.FormatArgs> argsProvider) throws E extends Exception
E extends Exception
public static <E extends Exception> void raiseUnless(boolean condition, Function<? super String,? extends E> fn, Supplier<String> message) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable,R> R raise(BiFunction<? super String,? super C,? extends E> fn, C cause, String format, Object... args) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable> void raiseIf(boolean condition, BiFunction<? super String,? super C,? extends E> fn, C cause, String format, Object... args) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable> void raiseUnless(boolean condition, BiFunction<? super String,? super C,? extends E> fn, C cause, String format, Object... args) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable,R> R raise(BiFunction<? super String,? super C,? extends E> fn, C cause, Supplier<String> message) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable> void raiseIf(boolean condition, BiFunction<? super String,? super C,? extends E> fn, C cause, String format, Consumer<Exceptions.FormatArgs> argsProvider) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable> void raiseIf(boolean condition, BiFunction<? super String,? super C,? extends E> fn, C cause, Supplier<String> message) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable> void raiseUnless(boolean condition, BiFunction<? super String,? super C,? extends E> fn, C cause, String format, Consumer<Exceptions.FormatArgs> argsProvider) throws E extends Exception
E extends Exception
public static <E extends Exception,C extends Throwable> void raiseUnless(boolean condition, BiFunction<? super String,? super C,? extends E> fn, C cause, Supplier<String> message) throws E extends Exception
E extends Exception
public static Throwable causeOf(Throwable t)
InvocationTargetException
s.t
- to unwrapInvocationTargetException
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.