1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#[cfg(feature = "rocksdb-datastore")]
use bincode::Error as BincodeError;
#[cfg(feature = "rocksdb-datastore")]
use rocksdb::Error as RocksDbError;
use serde_json::Error as JsonError;
error_chain!{
types {
Error, ErrorKind, ResultExt, Result;
}
foreign_links {
Json(JsonError);
RocksDb(RocksDbError) #[cfg(feature = "rocksdb-datastore")];
Bincode(BincodeError) #[cfg(feature = "rocksdb-datastore")];
}
}
error_chain! {
types {
ValidationError, ValidationErrorKind, ValidationResultExt, ValidationResult;
}
}