Skip to main content

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

ParameterRequiredTypeDefaultDescription
NoneNoneNoneNoneNone
TracePrint("------------------------------------Exception catch--------- ----------------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] Use try catch to handle code blocks that may cause exceptions.
Try
TracePrint []&"a"
Catch error
TracePrint error
End Try