@eoussama/firemitt
    Preparing search index...

    Class BaseError

    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 Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

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

      Parameters

      • type: ErrorType

        The type of the error.

      • message: string

        The error message describing the reason for the error.

      Returns BaseError

    Properties

    message: string

    The error message.

    name: string

    The name of the error.

    stack?: string
    type: ErrorType

    The type of the error.

    Methods

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

      Returns string

      A formatted error message.