Options
All
  • Public
  • Public/Protected
  • All
Menu

BaseError is the super class for all exceptions

Hierarchy

Index

Constructors

constructor

  • new BaseError(message: string, type: string, cause?: Error): BaseError
  • Construct a BaseError

    Parameters

    • message: string

      The error message

    • type: string

      The identity of this error

    • Optional cause: Error

      The causing error of this error

    Returns BaseError

Properties

Optional cause

cause: Error

The error, if exists, that caused this error

message

message: string

The error message

name

name: string

The name of the error, which is generally the constructor name

type

type: string

A value to identify the error from other errors

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: undefined | string

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