Add error module

This commit is contained in:
Matthias Beyer 2018-04-29 10:18:59 +02:00
parent e08ec34893
commit 30ac77d626
3 changed files with 37 additions and 0 deletions

View file

@ -27,6 +27,7 @@ regex = "0.2"
semver = "0.8" semver = "0.8"
toml = "0.4" toml = "0.4"
toml-query = "0.6" toml-query = "0.6"
error-chain = "0.11"
libimagstore = { version = "0.8.0", path = "../../../lib/core/libimagstore" } libimagstore = { version = "0.8.0", path = "../../../lib/core/libimagstore" }
libimagentrytag = { version = "0.8.0", path = "../../../lib/entry/libimagentrytag" } libimagentrytag = { version = "0.8.0", path = "../../../lib/entry/libimagentrytag" }

View file

@ -0,0 +1,34 @@
//
// imag - the personal information management suite for the commandline
// Copyright (C) 2015-2018 Matthias Beyer <mail@beyermatthias.de> and contributors
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; version
// 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
error_chain! {
types {
FilterError, FilterErrorKind, ResultExt, Result;
}
foreign_links {
TomlQueryError(::toml_query::error::Error);
}
errors {
}
}

View file

@ -38,6 +38,7 @@ extern crate regex;
extern crate semver; extern crate semver;
extern crate toml; extern crate toml;
extern crate toml_query; extern crate toml_query;
#[macro_use] extern crate error_chain;
extern crate libimagstore; extern crate libimagstore;
extern crate libimagentrytag; extern crate libimagentrytag;
@ -46,6 +47,7 @@ extern crate libimagentrytag;
// these depend only on libimagstore // these depend only on libimagstore
pub mod builtin; pub mod builtin;
pub mod error;
// extended functionality of the crate // extended functionality of the crate
// these depend on other internal libraries than libimagstore and use the upper core modules for // these depend on other internal libraries than libimagstore and use the upper core modules for