TryCatch

class TryCatch(    val tryBlock: Block,     val name: Identifier,     val type: Identifier,     val catchBlock: Block) : Statement

Try to execute tryBlock, but execute catchBlock as soon as an exception of type type is raised.

Constructors

Link copied to clipboard
fun TryCatch(    tryBlock: Block,     name: Identifier,     type: Identifier,     catchBlock: Block)

Properties

Link copied to clipboard
val catchBlock: Block

the Block to execute when an exception of type type is raised inside the tryBlock

Link copied to clipboard
val name: Identifier

the identifier at which the exception object can be accessed as a constant inside the catchBlock

Link copied to clipboard
val tryBlock: Block

the Block to execute initially.

Link copied to clipboard
val type: Identifier

an identifier that resolves to a valid exception type. Only exceptions of this type will cause the execution of the catchBlock