Options
All
  • Public
  • Public/Protected
  • All
Menu

A Deno specific error. The kind property is set to a specific error code which can be used to in application logic.

  try {
    somethingThatMightThrow();
  } catch (e) {
    if (
      e instanceof Deno.DenoError &&
      e.kind === Deno.ErrorKind.Overflow
    ) {
      console.error("Overflow error!");
    }
  }

Type parameters

Hierarchy

  • Error
    • DenoError

Index

Constructors

Properties

Constructors

constructor

  • new DenoError(kind: T, msg: string): DenoError
  • Parameters

    • kind: T
    • msg: string

    Returns DenoError

Properties

kind

kind: T

message

message: string

name

name: string

Optional stack

stack: string

Static Error

Error: ErrorConstructor

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc