1pub fn missing_part(path: &str) -> String {
5 format!("Missing required part: {path}")
6}
7
8pub fn slide_not_found(index: usize) -> String {
10 format!("Slide {index} not found")
11}
12
13pub fn slide_file_not_found(path: &str) -> String {
15 format!("Slide file not found: {path}")
16}
17
18pub fn index_out_of_range(field: &str, index: usize, count: usize) -> String {
20 format!("{field} index {index} out of range (count: {count})")
21}
22
23pub fn must_not_be_empty(field: &str) -> String {
25 format!("{field} must not be empty")
26}
27
28pub fn must_be_positive(field: &str) -> String {
30 format!("{field} must be positive")
31}
32
33pub fn empty_xml(path: &str) -> String {
35 format!("Empty XML content in '{path}'")
36}
37
38pub fn empty_xml_content() -> String {
40 "Empty XML content".to_string()
41}
42
43pub fn invalid_xml(path: &str, detail: &str) -> String {
45 format!("Invalid XML in '{path}': {detail}")
46}
47
48pub fn unsupported_format(ext: &str) -> String {
50 format!("Unsupported format: {ext}")
51}
52
53pub fn unsupported_media_format(ext: &str) -> String {
55 format!("Unsupported media format: {ext}")
56}
57
58pub fn invalid_value(field: &str, detail: &str) -> String {
60 format!("Invalid {field}: {detail}")
61}
62
63pub fn unsupported_operation(element: &str, operation: &str) -> String {
65 format!("{operation} is not supported for {element}")
66}
67
68pub fn command_failed(command: &str, detail: &str) -> String {
70 format!("Failed to execute {command}: {detail}")
71}
72
73pub fn command_unsuccessful(command: &str) -> String {
75 format!("{command} failed")
76}
77
78pub fn output_not_found(path: &str) -> String {
80 format!("Output file not found: {path}")
81}