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

x/ayonli_jsext/error/Exception.ts>ExceptionOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface ExceptionOptions
import { type ExceptionOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/error/Exception.ts";

Options for creating an exception, used by the Exception constructor.

Properties

optional
name: string

The name of the exception, usually use the same names as the DOMException instances, such as TimeoutError, NetworkError, etc.

optional
cause: unknown

The cause of the exception, usually the original error or exception.

optional
code: number

The error code of the exception, usually use the same codes as the HTTP status.