Class AssertionError
Hierarchy
- Error
- AssertionError
Index
Constructors
Properties
Constructors
constructor
- new
Assertion (message, options?): AssertionErrorError Constructs a new instance.
Parameters
- message: string
The error message.
Optionaloptions: ErrorOptionsAdditional options. This argument is still unstable. It may change in the future release.
Returns AssertionError
- message: string
Error thrown when an assertion fails.
Example: Usage