public static interface Try.TryCatch<V,X extends java.lang.Throwable>
Modifier and Type | Method and Description |
---|---|
<T> Try.AndFinally<T,V,X> |
tryThis(Try.CheckedFunction<V,T,X> catchBlock)
Build another stage in try / catch / finally block
This defines the CheckedFunction that will be run in the main body of the catch block
Next step can define the finally block
|
<T> Try<T,X> |
tryWithResources(Try.CheckedFunction<V,T,X> catchBlock)
Will execute and run the CheckedFunction supplied and will automatically
safely close any Closeables supplied during init (either individually or inside an iterable)
|
<T> Try<T,X> tryWithResources(Try.CheckedFunction<V,T,X> catchBlock)
catchBlock
- CheckedFunction to Try<T> Try.AndFinally<T,V,X> tryThis(Try.CheckedFunction<V,T,X> catchBlock)
catchBlock
- To Try