summaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: cf34910f47926b95a231914c4ec2da2c1433382d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error_chain! {

    types {
        VObjectError, VObjectErrorKind, ResultExt, Result;
    }

    errors {
        ParserError(desc: String) {
            description("Parser error")
            display("{}", desc)
        }

        NotAVCard {
            description("Input is not a valid VCard")
            display("Passed content string is not a VCard")
        }

    }


}