Executes an onTry { tryBlock } onFinally { finallyBlock }
statement.
Executes an onTry { tryBlock } onFinally { finallyBlock }
statement.
This statement has the same semantics like the built-in try { tryBlock } finally { finallyBlock }
statement
except that if the finallyBlock
throws a non-fatal Throwable t2
, then this throwable gets added to the
throwable t1
from the tryBlock
using t1.addSuppressed(t2)
.
the code block to unconditionally execute after the tryBlock
.
the return value of the tryBlock
.
Executes an onTry { tryBlock } onNonFatal { throwBlock }
statement.
Executes an onTry { tryBlock } onNonFatal { throwBlock }
statement.
This statement executes the throwBlock
if and only if the tryBlock
throws a non-fatal Throwable.
If the throwBlock
throws a non-fatal Throwable t2
, then this throwable gets added to the throwable t1
from the tryBlock
using t1.addSuppressed(t2)
.
the code block to execute if and only if the tryBlock
throws a non-fatal Throwable.
the return value of the tryBlock
.
Executes an onTry { tryBlock } onThrowable { throwBlock }
statement.
Executes an onTry { tryBlock } onThrowable { throwBlock }
statement.
This statement executes the throwBlock
if and only if the tryBlock
throws a Throwable.
If the throwBlock
throws a non-fatal Throwable t2
, then this throwable gets added to the throwable t1
from the tryBlock
using t1.addSuppressed(t2)
.
the code block to execute if and only if the tryBlock
throws a Throwable.
the return value of the tryBlock
.