diff options
author | Adam T. Carpenter <atc@53hor.net> | 2022-10-26 21:02:31 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2022-10-26 21:02:31 -0400 |
commit | 9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f (patch) | |
tree | db9ca419266117facecdff6d30460669f3148efb /dichroism/src/error.rs | |
parent | f243a3b7341012227d6e8342a65f9c5d7784256f (diff) | |
download | theglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.tar.xz theglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.zip |
init: add some stories and personas and begin layout out domain
Diffstat (limited to 'dichroism/src/error.rs')
-rw-r--r-- | dichroism/src/error.rs | 25 |
1 files changed, 0 insertions, 25 deletions
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<image::ImageError> for DichroismError { - fn from(e: image::ImageError) -> Self { - Self::ImageWrite(e.to_string()) - } -} - -impl From<base64::DecodeError> for DichroismError { - fn from(e: base64::DecodeError) -> Self { - Self::UriDataExtract(e.to_string()) - } -} |