Component evidence

APP_ERROR_CODES (dto/error.ts)

opencove · src/shared/contracts/dto/error.ts · typescript · MIT
files

Comprehensive error code registry with typed constants, parameter shapes, and descriptor interface for structured error handling.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/DeadWaveWave/opencove | License: MIT | Copyright 2026 DeadWaveWave
// Provided via justclaw.it.com; keep this notice with the code.
export const APP_ERROR_CODES = [
  'common.invalid_input',
  'plugin.operation_failed',
  'common.approved_path_required',
  'common.unavailable',
  'common.unexpected',
  'worker.unavailable',
  'endpoint.operation_in_progress',
  'space.not_found',
  'space.ambiguous',
  'node.not_found',
  'node.unsupported_operation',
  'session.not_found',
  'control_surface.unauthorized',
  'integration.github.unavailable',
  'integration.github.resolve_failed',
  'integration.github.action_failed',
  'issue_report.prepare_failed',
  'issue_report.open_failed',
  'issue_report.show_file_failed',
  'workspace.select_directory_failed',
  'work

... (truncated -- full source via MCP)