MCPcopy Create free account
hub / github.com/apache/bval / raiseIf

Method raiseIf

bval-jsr/src/main/java/org/apache/bval/util/Exceptions.java:66–71  ·  view source on GitHub ↗
(boolean condition, Function<? super String, ? extends E> fn,
        String format, Object... args)

Source from the content-addressed store, hash-verified

64 }
65
66 public static <E extends Exception> void raiseIf(boolean condition, Function<? super String, ? extends E> fn,
67 String format, Object... args) throws E {
68 if (condition) {
69 raise(fn, format, args);
70 }
71 }
72
73 public static <E extends Exception> void raiseUnless(boolean condition, Function<? super String, ? extends E> fn,
74 String format, Object... args) throws E {

Callers 15

raiseUnlessMethod · 0.95
notNullMethod · 0.95
ConfigurationImplMethod · 0.95
computeGroupsMethod · 0.95
ValidatePropertyMethod · 0.95
getGroupConversionsMethod · 0.95
getPropertyMethod · 0.95
openMethod · 0.95
getInputStreamMethod · 0.95

Calls 2

raiseMethod · 0.95
messageMethod · 0.95

Tested by

no test coverage detected