Class errors.AssertionError
Error class which is used by Assert to raise an assertion exception.
Defined in: errors.js.
Constructor Summary
new errors.AssertionError
(aResult)
All methods for fatal assertions as implemented in assertions.Assert throw an AssertionError as exception type if a test fails.
Constructor Detail
new errors.AssertionError(aResult)
All methods for fatal assertions as implemented in assertions.Assert throw
an AssertionError as exception type if a test fails.
- Parameters:
- {object} aResult
- Test result details used for error reporting.
- fileName
- Name of the file in which the assertion failed.
- function
- Function in which the assertion failed.
- lineNumber
- Line number of the file in which the assertion failed.
- message
- Message why the assertion failed.
- Returns:
- {AssertionError} Instance of the AssertionError class.
- See:
- assertions.Assert