Easypt

try

..Root.BlockCallable.try

Calls first, if exception is thrown, calls second with thrown exception as its argument.

Child of:

BlockCallable

Signatures:

NativeCallable, Callable

Example:

try({
    throw(Exception("Error!"));
}, {
    log(args[0].get());
});
try( {abababa;}, {
    log(args[0].get());
});