aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-27 18:05:34 +0200
committerHampusM <hampus@hampusmat.com>2022-07-31 12:17:51 +0200
commit3388f857b32cf1893d7b54582c8fd16e4965550b (patch)
tree2d78d6ca563b071cc2d6e4b3e80c05d93e575737 /src/errors
parent3fbf26181f1b4b9e594debb103fd347bd93240ea (diff)
feat: implement binding singletons
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/di_container.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/errors/di_container.rs b/src/errors/di_container.rs
index f2b8add..3b8c717 100644
--- a/src/errors/di_container.rs
+++ b/src/errors/di_container.rs
@@ -15,3 +15,16 @@ impl Display for DIContainerError
}
impl Context for DIContainerError {}
+
+#[derive(Debug)]
+pub struct BindingBuilderError;
+
+impl Display for BindingBuilderError
+{
+ fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result
+ {
+ fmt.write_str("A binding builder error has occurred")
+ }
+}
+
+impl Context for BindingBuilderError {}