use std::io;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("Key info not found")]
KeyInfo,
#[error("Key already exists")]
KeyExists,
#[error("Key does not exist")]
KeyNotExists,
#[error("Key not found")]
NoKey,
#[error(transparent)]
IO(#[from] io::Error),
#[error("{0}")]
Other(String),
#[error("Could not convert from KeyInfo to Key")]
KeyInfoConversion,
}