You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>Return the value of an UnsafeSupplier, converting any raised Exception to ConfigRuntimeException, a message will be prefixed to the thrown ConfigRuntimeException.</p>
129
+
*
130
+
* @param <T> the returned type
131
+
* @param supplier the {@link UnsafeSupplier} function
132
+
* @param message the message to be prefixed to the thrown ConfigRuntimeException
133
+
* @return the value evaluated by the {@link UnsafeSupplier}
134
+
* @throws ConfigRuntimeException may throw ConfigRuntimeException in case of exceptions
* <p>Apply an UnsafeVoid function, converting any raised Exception to ConfigRuntimeException.</p>
114
142
*
115
143
* @param fun the {@link UnsafeVoid} function
144
+
* @throws ConfigRuntimeException may throw ConfigRuntimeException in case of exceptions
116
145
*/
117
146
publicstaticvoidapply( UnsafeVoid<Exception> fun ) {
118
147
apply( fun , DEFAULT_EX_CONSUMER );
119
148
}
120
149
150
+
/**
151
+
* <p>Apply an UnsafeVoid function, only logging (level WARN) any error.</p>
152
+
*
153
+
* @param fun the {@link UnsafeVoid} function
154
+
*/
121
155
publicstaticvoidapplySilent( UnsafeVoid<Exception> fun ) {
122
156
apply( fun , EX_CONSUMER_LOG_WARN );
123
157
}
124
158
159
+
/**
160
+
* <p>Apply an UnsafeVoid function, converting any raised Exception to ConfigRuntimeExceptiona, message will be prefixed to the thrown ConfigRuntimeException.</p>
161
+
*
162
+
* @param fun the {@link UnsafeVoid} function
163
+
* @param message the message to be prefixed to the thrown ConfigRuntimeException
164
+
* @throws ConfigRuntimeException may throw ConfigRuntimeException in case of exceptions
0 commit comments