メインコンテンツまでスキップ
バージョン:25.4

assertionBehavior

Global Property (Added in SenseTalk 1.72)

The assertionBehavior global property sets the behavior of the assert command when assert evaluates a statement as false, and controls the behavior for failed assertions, which may be set to one of:

  • Exception – an assertionFailed exception is thrown, with a nice error message
  • Warning – a nice warning message is logged
  • Error – an error is logged, script continues
  • Pause – a warning is logged, the system beeps and the script pauses in the debugger

The initial default value of the assertionBehavior is "Exception".

If the English-like version of the command is used and includes one of the words "warning", "error", "exception", or "pause", that will take precedence over the setting of the assertionBehavior.

Further Reading

Resources in our other reference manuals.

Related terms in the SenseTalk Dictionary.