LCOV - code coverage report
Current view: top level - src/platform/remote/ingest - ingestApiError.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 30.8 % 13 4
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import type { BillingTelemetryFailure } from '@comfyorg/account-core/billing'
       2              : 
       3         2356 : export class WorkspaceApiError extends Error {
       4              :   constructor(
       5              :     message: string,
       6            0 :     public readonly status?: number,
       7            0 :     public readonly code?: string,
       8            0 :     public readonly failureCategory?: BillingTelemetryFailure['failure_category'],
       9            0 :     public readonly operation?: string,
      10            0 :     public readonly retryAfterSeconds?: number
      11              :   ) {
      12            0 :     super(message)
      13            0 :     this.name = 'WorkspaceApiError'
      14              :   }
      15              : }
      16              : 
      17         2356 : export const NO_WORKSPACE_ACCESS = 'no_workspace_access'
      18              : 
      19         2356 : export const MEMBERSHIP_MANAGED_BY_DIRECTORY = 'membership_managed_by_directory'
      20              : 
      21         2356 : export class NoWorkspaceAccessError extends WorkspaceApiError {
      22              :   constructor(message: string, status?: number, operation?: string) {
      23            0 :     super(message, status, NO_WORKSPACE_ACCESS, undefined, operation)
      24            0 :     this.name = 'NoWorkspaceAccessError'
      25              :   }
      26              : }
        

Generated by: LCOV version 2.0-1