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

Constructors

Properties

Constructors

Properties

message: string = ''
name: string
stack?: string

Generated using TypeDoc