Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.7/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.