public final class RiskyBusiness extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RiskyBusiness.CheckedFunction<Input,Output>
A function that needs catching.
|
Modifier and Type | Method and Description |
---|---|
static <Input,Output> |
assertSafe(@NonNull RiskyBusiness.CheckedFunction<Input,Output> function,
Input input)
Throws an assertion error if the function throws an exception.
|
public static <Input,Output> Output assertSafe(@NonNull RiskyBusiness.CheckedFunction<Input,Output> function, Input input)
Input
- input typeOutput
- output typefunction
- function to executeinput
- input to processCopyright © 2013–2021 Kitteh. All rights reserved.