pub fn missing_part(path: &str) -> String {
format!("Missing required part: {path}")
}
pub fn slide_not_found(index: usize) -> String {
format!("Slide {index} not found")
}
pub fn slide_file_not_found(path: &str) -> String {
format!("Slide file not found: {path}")
}
pub fn index_out_of_range(field: &str, index: usize, count: usize) -> String {
format!("{field} index {index} out of range (count: {count})")
}
pub fn must_not_be_empty(field: &str) -> String {
format!("{field} must not be empty")
}
pub fn must_be_positive(field: &str) -> String {
format!("{field} must be positive")
}
pub fn empty_xml(path: &str) -> String {
format!("Empty XML content in '{path}'")
}
pub fn empty_xml_content() -> String {
"Empty XML content".to_string()
}
pub fn invalid_xml(path: &str, detail: &str) -> String {
format!("Invalid XML in '{path}': {detail}")
}
pub fn unsupported_format(ext: &str) -> String {
format!("Unsupported format: {ext}")
}
pub fn unsupported_media_format(ext: &str) -> String {
format!("Unsupported media format: {ext}")
}
pub fn invalid_value(field: &str, detail: &str) -> String {
format!("Invalid {field}: {detail}")
}
pub fn unsupported_operation(element: &str, operation: &str) -> String {
format!("{operation} is not supported for {element}")
}
pub fn command_failed(command: &str, detail: &str) -> String {
format!("Failed to execute {command}: {detail}")
}
pub fn command_unsuccessful(command: &str) -> String {
format!("{command} failed")
}
pub fn output_not_found(path: &str) -> String {
format!("Output file not found: {path}")
}