Application Error Types (types/error.types.ts)

claude-code-history-viewer · src/types/error.types.ts · typescript · MIT
infra, dev-tools, lang:typescript, tag:error-handling, tag:app-errors, tag:validation

Defines standardized error types and messages for the Claude Code History Viewer application. Use when consistent error handling across the app is needed.

// Source: https://github.com/jhlee0409/claude-code-history-viewer | License: MIT | Copyright 2025 JaeHyeok Lee
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Error Types
 *
 * Application error handling types.
 */

// ============================================================================
// Error Type Enum
// ============================================================================

export enum AppErrorType {
  CLAUDE_FOLDER_NOT_FOUND = "CLAUDE_FOLDER_NOT_FOUND",
  TAURI_NOT_AVAILABLE = "TAURI_NOT_AVAILABLE",
  PERMISSION_DENIED = "PERMISSION_DENIED",
  INVALID_PATH = "INVALID_PATH",
  UNKNOWN = "UNKNOWN",
}

// ============================================================================
// App Error
// ====================================================

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

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key