AssertionError
Thrown to indicate that an assertion has failed.
Extends:
Error → RuntimeError → AssertionError
Constructor Summary
Public Constructor | ||
public |
constructor(message: string, expected: unknown, actual: unknown, cause: Error) |
Inherited Summary
From class RuntimeError | ||
public |
name: * |
|
public |
stack: string |
|
public |
toString(): string Human-readable description |
Public Constructors
public constructor(message: string, expected: unknown, actual: unknown, cause: Error) source
Override:
RuntimeError#constructorParams:
Name | Type | Attribute | Description |
message | string | Human-readable description of the error |
|
expected | unknown | The value that was expected |
|
actual | unknown | The value that was received instead of the expected one |
|
cause | Error |
|
The root cause of this RuntimeError, if any |