Skip to main content
Version: v6.7.0

Try ... Catch

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