Skip to main content
Module

x/mtkruto/0_deps.ts>AssertionError

Cross-runtime JavaScript library for building Telegram clients
Latest
class AssertionError
extends Error
Re-export
import { AssertionError } from "https://deno.land/x/mtkruto@0.2.30/0_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.