@yamlresume/core
    Preparing search index...

    Variable ErrorTypeConst

    ErrorType: {
        AI_PROVIDER_NOT_CONFIGURED: {
            code: "AI_PROVIDER_NOT_CONFIGURED";
            envVar: "";
            errno: number;
            message: "AI provider {provider} is not configured. Please set the {envVar} environment variable.";
            provider: "";
        };
        FILE_CONFLICT: {
            code: "FILE_CONFLICT";
            errno: number;
            message: string;
            path: "";
        };
        FILE_NOT_FOUND: {
            code: "FILE_NOT_FOUND";
            errno: number;
            message: "Resume not found: {path}";
            path: "";
        };
        FILE_READ_ERROR: {
            code: "FILE_READ_ERROR";
            errno: number;
            message: "Failed to read resume file: {path}";
            path: "";
        };
        FILE_WRITE_ERROR: {
            code: "FILE_WRITE_ERROR";
            errno: number;
            message: "Failed to write file: {path}";
            path: "";
        };
        INVALID_EXTNAME: {
            code: "INVALID_EXTNAME";
            errno: number;
            extname: "";
            message: string;
        };
        INVALID_JSON: {
            code: "INVALID_JSON";
            errno: number;
            error: "";
            message: "Invalid JSON format: {error}";
        };
        INVALID_LANGUAGE: {
            code: "INVALID_LANGUAGE";
            errno: number;
            language: "";
            message: "Invalid language: {language}. Run `yamlresume languages list` to see supported languages.";
        };
        INVALID_YAML: {
            code: "INVALID_YAML";
            errno: number;
            error: "";
            message: "Invalid YAML format: {error}";
        };
        LATEX_COMPILE_ERROR: {
            code: "LATEX_COMPILE_ERROR";
            errno: number;
            error: "";
            message: "LaTeX compilation failed: {error}";
        };
        LATEX_COMPILE_TIMEOUT: {
            code: "LATEX_COMPILE_TIMEOUT";
            errno: number;
            message: string;
            timeout: "";
        };
        LATEX_NOT_FOUND: {
            code: "LATEX_NOT_FOUND";
            errno: number;
            message: "LaTeX compiler not found. Please install either xelatex or tectonic";
        };
        SCHEMA_VALIDATION_FAILED: {
            code: "SCHEMA_VALIDATION_FAILED";
            errno: number;
            message: "Resume schema validation failed for {path}";
            path: "";
        };
    } = ...

    Enum of error codes for YAMLResumeError.

    Error codes are used to identify specific errors and can be used to internationalize error messages.

    Type Declaration

    • ReadonlyAI_PROVIDER_NOT_CONFIGURED: {
          code: "AI_PROVIDER_NOT_CONFIGURED";
          envVar: "";
          errno: number;
          message: "AI provider {provider} is not configured. Please set the {envVar} environment variable.";
          provider: "";
      }
    • ReadonlyFILE_CONFLICT: { code: "FILE_CONFLICT"; errno: number; message: string; path: "" }
    • ReadonlyFILE_NOT_FOUND: {
          code: "FILE_NOT_FOUND";
          errno: number;
          message: "Resume not found: {path}";
          path: "";
      }
    • ReadonlyFILE_READ_ERROR: {
          code: "FILE_READ_ERROR";
          errno: number;
          message: "Failed to read resume file: {path}";
          path: "";
      }
    • ReadonlyFILE_WRITE_ERROR: {
          code: "FILE_WRITE_ERROR";
          errno: number;
          message: "Failed to write file: {path}";
          path: "";
      }
    • ReadonlyINVALID_EXTNAME: { code: "INVALID_EXTNAME"; errno: number; extname: ""; message: string }
    • ReadonlyINVALID_JSON: {
          code: "INVALID_JSON";
          errno: number;
          error: "";
          message: "Invalid JSON format: {error}";
      }
    • ReadonlyINVALID_LANGUAGE: {
          code: "INVALID_LANGUAGE";
          errno: number;
          language: "";
          message: "Invalid language: {language}. Run `yamlresume languages list` to see supported languages.";
      }
    • ReadonlyINVALID_YAML: {
          code: "INVALID_YAML";
          errno: number;
          error: "";
          message: "Invalid YAML format: {error}";
      }
    • ReadonlyLATEX_COMPILE_ERROR: {
          code: "LATEX_COMPILE_ERROR";
          errno: number;
          error: "";
          message: "LaTeX compilation failed: {error}";
      }
    • ReadonlyLATEX_COMPILE_TIMEOUT: { code: "LATEX_COMPILE_TIMEOUT"; errno: number; message: string; timeout: "" }
    • ReadonlyLATEX_NOT_FOUND: {
          code: "LATEX_NOT_FOUND";
          errno: number;
          message: "LaTeX compiler not found. Please install either xelatex or tectonic";
      }
    • ReadonlySCHEMA_VALIDATION_FAILED: {
          code: "SCHEMA_VALIDATION_FAILED";
          errno: number;
          message: "Resume schema validation failed for {path}";
          path: "";
      }