klub_stores 0.0.2

Klub database interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::error;
use std::fmt;
#[derive(Debug)]
pub enum DBError {
    GraphError,
    IndexDBError,
}

impl fmt::Display for DBError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match *self {
            DBError::GraphError => write!(f, "Unexpected Graph error occured."),
            DBError::IndexDBError => write!(f, "Unexpected IndexDB error occured"),
        }
    }
}

impl error::Error for DBError {}