Skip to main content
Deno 2 is finally here 🎉️
Learn more

panic

Functional way of throwing errors in Deno.

usage

import { panic } from "https://deno.land/x/panic@v1.0.0"

panic("Oops, something went wrong");
panic(new Error("Unrecoverable error"));