//! The module defining custom leveldb error type.

/// A leveldb error, just containing the error string
/// provided by leveldb.
#[derive(Debug)]
pub struct Error {
  message: String
}

impl Error {
  /// create a new Error, using the String provided
  pub fn new(message: String) -> Error {
    Error { message: message }
  }
}
