SysTest.wasExpectedExceptionMessageThrown Method [AX 2012]

Checks whether the expected exception was thrown.


private boolean wasExpectedExceptionMessageThrown(str _actual, str _expected)

Run On



  • _actual
    Type: str
    The actual value.
  • _expected
    Type: str
    The expected exception message.

Return Value

Type: boolean
true if the expected exception was thrown; otherwise, false.

See Also

SysTest Class

SysTestCase Class

SysTestSuite Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework