ART Framework API Docs
    Preparing search index...

    Class ARTError

    Custom error class for ART framework specific errors. It includes an error code, an optional original error for chaining, and a details object for additional context.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates an instance of ARTError.

      Parameters

      • message: string

        The error message.

      • code: ErrorCode

        The error code.

      • OptionaloriginalError: Error

        The original error, if any.

      • Optionaldetails: Record<string, any> = {}

        Additional details about the error.

      Returns ARTError

    Properties

    code: ErrorCode

    The specific error code from the ErrorCode enum.

    details: Record<string, any>

    A record of additional details about the error.

    originalError?: Error

    The original error that caused this error, if any.

    Methods

    • Returns a string representation of the error, including the original error if present.

      Returns string

      The string representation of the error.