Module

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

A better way to work with processes in Deno.
Latest
class AssertionError
extends Error
import { AssertionError } from "https://dotland.deno.dev/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@$STD_VERSION/assert/assertion_error.ts";

throw new AssertionError("Assertion failed");

Constructors

new
AssertionError(message: string)

Constructs a new instance.

import AssertionError
import { AssertionError } from "https://dotland.deno.dev/x/proc@0.21.9/tests/deps/asserts.ts";