From 9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 26 Oct 2022 21:02:31 -0400 Subject: init: add some stories and personas and begin layout out domain --- dichroism/src/error.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 dichroism/src/error.rs (limited to 'dichroism/src/error.rs') diff --git a/dichroism/src/error.rs b/dichroism/src/error.rs deleted file mode 100644 index 0cdd269..0000000 --- a/dichroism/src/error.rs +++ /dev/null @@ -1,25 +0,0 @@ -#[derive(Debug)] -pub enum DichroismError { - UriDataExtract(String), - ImageWrite(String), -} - -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, "{}", self) - } -} - -impl From for DichroismError { - fn from(e: image::ImageError) -> Self { - Self::ImageWrite(e.to_string()) - } -} - -impl From for DichroismError { - fn from(e: base64::DecodeError) -> Self { - Self::UriDataExtract(e.to_string()) - } -} -- cgit v1.2.3