1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
use thiserror::Error;
#[derive(Error, Debug, Clone, PartialEq)]
pub enum ParserError {
#[error("Component id '{0}' is not a fully qualified name with a namespace")]
ComponentIdError(String),
#[error("Failed to deserialize configuration {0}")]
ConfigurationDeserialization(String),
#[error("Could not parse manifest as YAML: {0}")]
YamlError(String),
#[error("Invalid connection target syntax: '{0}'")]
ConnectionTargetSyntax(String),
#[error("Invalid connection definition syntax: '{0}'")]
ConnectionDefinitionSyntax(String),
#[error("No suitable default found for port in : {0}")]
NoDefaultPort(String),
#[error("No suitable default found for reference in : {0}")]
NoDefaultReference(String),
#[error("Error parsing or serializing Sender data: {0}")]
InvalidSenderData(String),
#[error("Attempted to grab data from a target that doesn't exist")]
NoTarget,
#[error("Invalid file path: {0}")]
BadPath(String),
#[error("Invalid IP Address: {0}")]
BadIpAddress(String),
#[error("General error : {0}")]
Other(String),
}