From 92cc9192081a3fa5cc9e5846dfe7118f5b87ae42 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 6 Sep 2018 03:58:34 +0200 Subject: initial commit --- src/errors.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/errors.rs (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs new file mode 100644 index 0000000..7cb1886 --- /dev/null +++ b/src/errors.rs @@ -0,0 +1,18 @@ +use std; +use walkdir; + +quick_error! { + #[derive(Debug)] + pub enum RuntimeError { + Walkdir(err: walkdir::Error) { + from() + cause(err) + display("File enumeration error: {}", err) + } + Io(err: std::io::Error) { + from() + cause(err) + display("I/O error: {}", err) + } + } +} -- cgit v1.2.3