Skip to main content
Module

x/fresh/tests/deps.ts>AssertionError

The next-gen web framework.
Extremely Popular
Go to Latest
class AssertionError
extends Error
Re-export
import { AssertionError } from "https://deno.land/x/fresh@1.6.5/tests/deps.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.