diff options
author | Stuart Stock <stuart@int08h.com> | 2017-06-17 15:17:37 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2017-06-17 15:17:37 -0500 |
commit | 13d53fec92fddae9c312d323db81bbcb97adbe21 (patch) | |
tree | a00f72390e02aec158bd46e5605c0a2b8e74773e /src/error.rs | |
parent | fea8a33a58e302ba83f86b80c3ea556847beec44 (diff) | |
download | roughenough-13d53fec92fddae9c312d323db81bbcb97adbe21.zip |
restructuring as a proper crate
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs new file mode 100644 index 0000000..094171d --- /dev/null +++ b/src/error.rs @@ -0,0 +1,15 @@ +use std; + +use tag::Tag; + +#[derive(Debug)] +pub enum Error { + TagNotStrictlyIncreasing(Tag), + EncodingFailure(std::io::Error), +} + +impl From<std::io::Error> for Error { + fn from(err: std::io::Error) -> Self { + Error::EncodingFailure(err) + } +} |