Skip to main content
Deno 2 is finally 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.0.0/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