Indicates the failure of an assertion. All errors thrown by the Assert module will be instances of the AssertionError class.

See also:

Constructor

new(options:AssertionErrorOptions)

A subclass of Error that indicates the failure of an assertion.

Variables

actual:Dynamic

Set to the actual argument for methods such as Assert.strictEqual().

code:String

Value is always ERR_ASSERTION to show that the error is an assertion error.

expected:Dynamic

Set to the expected value for methods such as Assert.strictEqual().

generatedMessage:Bool

Indicates if the message was auto-generated (true) or not.

@:native("operator")operator_:String

Set to the passed in operator value.

Inherited Variables

Inherited Methods