ErrorType: {
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_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";
};
} = ...
Type Declaration
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_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";
}
Enum of error codes for YAMLResumeError.
Error codes are used to identify specific errors and can be used to internationalize error messages.