Skip to main content
Module

x/lume/deps/assert.ts>AssertionError

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class AssertionError
extends Error
Re-export
import { AssertionError } from "https://deno.land/x/lume@v2.1.3/deps/assert.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.