class AssertionError
extends Error
Error thrown when an assertion fails.
Examples
Example 1
Example 1
import { AssertionError } from "@std/assert/assertion_error"; throw new AssertionError("Assertion failed");
Constructors
new AssertionError(message: string)Constructs a new instance.