libimagcounter/error.rs
1//
2// imag - the personal information management suite for the commandline
3// Copyright (C) 2015, 2016 Matthias Beyer <mail@beyermatthias.de> and contributors
4//
5// This library is free software; you can redistribute it and/or
6// modify it under the terms of the GNU Lesser General Public
7// License as published by the Free Software Foundation; version
8// 2.1 of the License.
9//
10// This library is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13// Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public
16// License along with this library; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18//
19
20error_chain! {
21 types {
22 CounterError, CounterErrorKind, ResultExt, Result;
23 }
24
25 errors {
26 StoreIdError {
27 description("StoreId error")
28 display("StoreId error")
29 }
30
31 StoreReadError {
32 description("Store read error")
33 display("Store read error")
34 }
35
36 StoreWriteError {
37 description("Store write error")
38 display("Store write error")
39 }
40
41 HeaderTypeError {
42 description("Header type error")
43 display("Header type error")
44 }
45
46 HeaderFieldMissingError {
47 description("Header field missing error")
48 display("Header field missing error")
49 }
50
51 }
52}
53