Skip to main content
Module

x/cliffy/testing/deps.ts>AssertionError

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
class AssertionError
extends Error
import { AssertionError } from "https://deno.land/x/cliffy@v1.0.0-rc.4/testing/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.