aboutsummaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2018-09-06 03:58:34 +0200
committerDaniel <kingdread@gmx.de>2018-09-06 03:58:34 +0200
commit92cc9192081a3fa5cc9e5846dfe7118f5b87ae42 (patch)
tree034da49c6475403f8a15378459b488e133dbfbfa /src/errors.rs
downloadraidgrep-92cc9192081a3fa5cc9e5846dfe7118f5b87ae42.tar.gz
raidgrep-92cc9192081a3fa5cc9e5846dfe7118f5b87ae42.tar.bz2
raidgrep-92cc9192081a3fa5cc9e5846dfe7118f5b87ae42.zip
initial commit
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs18
1 files changed, 18 insertions, 0 deletions
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)
+ }
+ }
+}