mdfetch API Documentation - v1.0.0
    Preparing search index...

    Class FetchError

    Custom error class for fetch-related errors. Extends the base Error class with HTTP status code and original error tracking.

    throw new FetchError('Request failed', 404);
    

    Hierarchy

    • Error
      • FetchError
    Index

    Constructors

    Properties

    Constructors

    • Creates a new FetchError.

      Parameters

      • message: string

        Error message describing what went wrong

      • OptionalstatusCode: number

        HTTP status code (if applicable)

      • OptionaloriginalError: Error

        Original error that caused this error (if any)

      Returns FetchError

    Properties

    statusCode?: number

    HTTP status code (if applicable)

    originalError?: Error

    Original error that caused this error (if any)