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

x/berror/berror.ts>BError

Rich Errors including chain of causes, metadata, easy logging and TypeScript definitions.
Latest
class BError
extends Error
import { BError } from "https://deno.land/x/berror@v1.1.3/berror.ts";

Constructors

new
BError(
msg: string,
cause?: Error,
metadata?: Record<string, unknown>,
)

Properties

private
firstStack: string | undefined

Methods

log(...args: unknown[])