summaryrefslogtreecommitdiff
path: root/dichroism/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dichroism/src/error.rs')
-rw-r--r--dichroism/src/error.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/dichroism/src/error.rs b/dichroism/src/error.rs
new file mode 100644
index 0000000..2f01381
--- /dev/null
+++ b/dichroism/src/error.rs
@@ -0,0 +1,12 @@
+#[derive(Debug)]
+pub enum DichroismError {
+ UriDataExtract,
+}
+
+impl std::error::Error for DichroismError {}
+
+impl std::fmt::Display for DichroismError {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "Dichroism Error: {}", self)
+ }
+}