Mercurial > hg > truffle
view graal/com.oracle.truffle.ruby.test/specs/tags/language/rescue_tags.txt @ 13758:57d1746e3b3d
refactored phase for stamping parameters as non-null that was duplicated in the GPU backends
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 24 Jan 2014 18:06:03 +0100 |
parents | 0fbee3eb71f0 |
children |
line wrap: on
line source
fails:The rescue keyword can be used to handle a specific exception fails:The rescue keyword can capture the raised exception in a local variable fails:The rescue keyword can rescue multiple raised exceptions with a single rescue block fails:The rescue keyword can rescue a splatted list of exceptions fails:The rescue keyword will only rescue the specified exceptions when doing a splat rescue fails:The rescue keyword will execute an else block only if no exceptions were raised fails:The rescue keyword will not execute an else block if an exception was raised fails:The rescue keyword will not rescue errors raised in an else block in the rescue block above it fails:The rescue keyword parses 'a += b rescue c' as 'a += (b rescue c)'