Zoomed Image

AMSX Scripting Language - Command : expecterror

Summary

Configure error-expectation mode used in testing scripts

Description

Controls the error-expectation flag used in testing and conditional flows. Pass "1" to expect an error (any version), a version string to expect an error only on that version, or "0" to stop expecting an error and clear the result buffer. When an expected error occurs it is absorbed rather than propagated.

Parameters

ParameterDescription
cmd"1" to expect any error, a version string to expect a version-specific error, or "0" to clear the expectation

Syntax


ExpectError ""1" to expect any error, a version string to expect a version-specific error, or "0" to clear the expectation"

Return to the AMSX Command Reference