Uses of Interface
com.github.stefanbirkner.fishbowl.StatementWithReturnValue
-
Uses of StatementWithReturnValue in com.github.stefanbirkner.fishbowl
Methods in com.github.stefanbirkner.fishbowl with parameters of type StatementWithReturnValueModifier and TypeMethodDescriptionstatic <V> V
Fishbowl.defaultIfException
(StatementWithReturnValue<V> statement, Class<? extends Throwable> exceptionType, V defaultValue) Executes the given statement and returns the statement's return value if no exception is thrown or the default value if an exception of the specified type is thrown.static <V> V
Fishbowl.wrapCheckedException
(StatementWithReturnValue<V> statement) Executes the given statement and encloses any checked exception thrown with an uncheckedWrappedException
, that is thrown instead.