Description

Custom error class that extends the built-in Error class. It is used as a base class for creating custom error types in your application.

Hierarchy (view full)

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • type: ErrorType

      The type of the error.

    • message: string

      The error message describing the reason for the error.

    Returns BaseError

    Description

    Creates a new instance of the BaseError class with the specified error message.

Properties

message: string

Description

The error message.

name: string

Description

The name of the error.

stack?: string
type: ErrorType

Description

The type of the error.

Methods

  • Returns string

    A formatted error message.

    Description

    Returns a string representation of the error message, prefixed with "[]".

Generated using TypeDoc