assertionBehavior
- global property
- new in 1.72
- • Added the assertionBehavior global property to control 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.
- Related: assert, assertionsEnabled