UNPKG

@oazmi/build-tools

Version:

general deno build tool scripts which I practically use in all of my typescript repos

20 lines (19 loc) 489 B
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // This module is browser compatible. /** * Error thrown when an assertion fails. * * @example * ```ts * import { AssertionError } from "@std/assert/assertion-error"; * * throw new AssertionError("Assertion failed"); * ``` */ export class AssertionError extends Error { /** Constructs a new instance. */ constructor(message) { super(message); this.name = "AssertionError"; } }