Error result interface

interface ErrorResult {
    data?: undefined;
    error: string;
    metadata: {
        executionTime: number;
        filesAffected?: string[];
        linesProcessed?: number;
        operation: string;
        timestamp: Date;
    };
    success: false;
}

Hierarchy (view full)

Properties

data?: undefined

Data returned by the operation (if successful)

error: string

Error message (if operation failed)

metadata: {
    executionTime: number;
    filesAffected?: string[];
    linesProcessed?: number;
    operation: string;
    timestamp: Date;
}

Operation metadata for debugging and monitoring

Type declaration

  • executionTime: number

    Time taken to execute the operation (in milliseconds)

  • OptionalfilesAffected?: string[]

    List of files that were affected by the operation

  • OptionallinesProcessed?: number

    Number of lines processed during the operation

  • operation: string

    Name of the operation performed

  • timestamp: Date

    When the operation was executed

success: false

Whether the operation completed successfully