Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomError

Makes sure the error once printed using console.log contains the actual class name.

example
class MyApiError extends CustomerError {}

throw MyApiError() // prints MyApiError instead of simply "Error".

Hierarchy

  • Error
    • CustomError

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    • message: string

    Returns CustomError

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Generated using TypeDoc