summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-27 18:49:45 +0200
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2017-10-27 18:49:45 +0200
commit451c0e98a12110579df19709108c053bfa873060 (patch)
treedbe5cc392e95a2d73a6fefd31dd02ee32fb91190 /src/error.rs
parentbf457b5b321791d6a2c1bcfb63be2831e32d8c78 (diff)
Refactoring (#15)
* Add dependency: error-chain, refactor to use error chain infrastructure * Split code into modules * Move tests to appropriate modules
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
new file mode 100644
index 0000000..d772e5e
--- /dev/null
+++ b/src/error.rs
@@ -0,0 +1,16 @@
+
+error_chain! {
+
+ types {
+ VObjectError, VObjectErrorKind, ResultExt, Result;
+ }
+
+ errors {
+ ParserError(desc: String) {
+ description("Parser error")
+ display("{}", desc)
+ }
+ }
+
+
+}