final
object
Try
try block catch handler finally finalizer
Note: if the handler is a case block CASES of the form
{ case1 ... caseN }
the parser returns Match(EmptyTree, CASES). Desugaring and typing this yields a closure node
{ def $anonfun(x: Throwable) = x match CASES; Closure(Nil, $anonfun) }
At some later stage when we normalize the try we can revert this to
Match(EmptyTree, CASES)
or else if stack is non-empty
Match(EmptyTree, <case x: Throwable => $anonfun(x)>)
Constructors
Members
def
apply
(
expr:
Tree
[
T
]
,
cases:
List
[
CaseDef
[
T
]
]
,
finalizer:
Tree
[
T
]
)
: Try
[
T
]
def
unapply
(
x$1:
Try
[
T
]
)
: Try
[
T
]