try
..Root.BlockCallable.try
Calls first, if exception is thrown, calls second with thrown exception as its argument.
Parameters: Callable
first (to call), Callable
second (to catch exception)
Return value: reference to this BlockCallable
NativeCallable
, Callable
try({
throw(Exception("Error!"));
}, {
log(args[0].get());
});
try( {abababa;}, {
log(args[0].get());
});