Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/eta/err.ts>default

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Go to Latest
function default
import { default } from "https://deno.land/x/eta@v2.1.1/err.ts";

This returns a new Error with a custom prototype. Note that it's not a constructor

Parameters

message: string

Error message

Example

throw EtaErr("template not found")

Returns

Error