rosrust/api/naming/
error.rs

1error_chain::error_chain! {
2    errors {
3        IllegalCharacter(name: String) {
4            description("Illegal character")
5            display("Illegal character in '{}' - limited to letters, numbers and underscores", name)
6        }
7        IllegalFirstCharacter(name: String) {
8            description("Illegal first character")
9            display("Illegal first character in '{}' - limited to letters", name)
10        }
11        EmptyName {
12            description("Name in path is empty")
13            display("Name in path is empty")
14        }
15        LeadingSlashMissing(path: String) {
16            description("Leading slash is missing")
17            display("Leading slash is missing in path {}", path)
18        }
19        MissingParent {
20            description("Path has no parent due to being root path")
21            display("Path has no parent due to being root path")
22        }
23    }
24}