• Creates a standardized operation result for failed operations

    Type Parameters

    • T = any

    Parameters

    • operation: string

      Name of the operation

    • error: string

      Error message

    • OptionalstartTime: number

      Start time for calculating execution time

    • OptionalfilesAffected: string[]

      List of files affected by the operation

    • OptionallinesProcessed: number

      Number of lines processed

    Returns OperationResult<T>

    Standardized ErrorResult