summaryrefslogtreecommitdiffstats
path: root/below/tc/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'below/tc/src/errors.rs')
-rw-r--r--below/tc/src/errors.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/below/tc/src/errors.rs b/below/tc/src/errors.rs
new file mode 100644
index 00000000..1d4a0f74
--- /dev/null
+++ b/below/tc/src/errors.rs
@@ -0,0 +1,13 @@
+use thiserror::Error;
+
+#[derive(Debug, Error)]
+pub enum TcError {
+ #[error("Netlink error: {0}")]
+ Netlink(String),
+
+ #[error("Read interfaces error: {0}")]
+ ReadInterfaces(String),
+
+ #[error("Failed to read tc stats: {0}")]
+ Read(String),
+}