Try-to-Execute-If-an-Exception-Occurs,-Then-It-Will-Be-Handled
Command Description
Use try-catch to handle code blocks that might throw an error
Command Prototype
Try
Catch Ex
End Try
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
None | None | None | None | None |
TracePrint("------------------------------------Exception catch--------- ----------------------------------")
//-------------------------------------------------------------------------------
//[Remarks] Use try catch to handle code blocks that may cause exceptions.
Try
TracePrint []&"a"
Catch error
TracePrint error
End Try