Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Exception

This is the recommended parent class for implenmenting custom exceptions. Extending this class will ensure the prototype chain is preserved in cases where extending the native Error class would not. *

* See this discussion for context.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • new Exception(message?: undefined | string): Exception

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Generated using TypeDoc