Skip to main content
The Deno 2 Release Candidate is here
Learn more
Very Popular
Go to Latest
class AssertionError
extends Error
Re-export
import { AssertionError } from "https://deno.land/x/redis@v0.32.1/vendor/https/deno.land/std/assert/mod.ts";

Error thrown when an assertion fails.

Examples

Example 1

import { AssertionError } from "https://deno.land/std@0.224.0/assert/assertion_error.ts";

throw new AssertionError("Assertion failed");

Constructors

new
AssertionError(message: string)

Constructs a new instance.