on
evaluates the supplied code block if the receiver block execution throws an exception of type T.
Parameters
Block
generic parameter which must implements Throwable interface
block of code to execute if caught Exception of type T
evaluates the supplied code block if the receiver block execution throws an exception of type T.
Return
Any?
Parameters
Closure
generic parameter which must implements Throwable interface
block of code to execute if caught Exception of type T
evaluates the supplied code block if the receiver block execution throws an exception of type T, and always evaluates the second code block.
Parameters
Block
generic parameter which must implements Throwable interface
block of code to execute if caught Exception of type T
block of code to always execute
evaluates the supplied code block if the receiver closure execution throws an exception of type T, and always evaluates the second code block.
Return
Any?
Parameters
CLosure
generic parameter which must implements Throwable interface
block of code to execute if caught Exception of type T
block of code to always execute