Skip to content

Class: Try ​

Represents a try block, wrapping code that might throw exceptions.

Example ​

ts
try { ... } catch e : DomainException { ... }

Constructors ​

Constructor ​

new Try(body, catchExpr, finallyExpr, loc?): Try

Parameters ​

ParameterType
bodyExpression
catchExprCatch[]
finallyExprExpression
loc?SourceLocation

Returns ​

Try

Overrides ​

ASTNode.constructor