Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/proc/tests/deps/asserts.ts>AssertionError

A better way to work with processes in Deno.
Latest
class AssertionError
extends Error
Re-export
import { AssertionError } from "https://deno.land/x/proc@0.21.9/tests/deps/asserts.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.