class AssertionError
extends Error
Deprecated
(will be removed after 1.0.0) Import from https://deno.land/std/assert/assertion_error.ts instead.
Error thrown when an assertion fails.
Examples
Example 1
Example 1
import { AssertionError } from "@std/testing/asserts"; throw new AssertionError("Assertion failed");
Constructors
new AssertionError(message: string)Constructs a new instance.