use std::io;
use trackable::error::TrackableError;
use trackable::error::{ErrorKind as TrackableErrorKind, ErrorKindExt};
#[derive(Debug, Clone, TrackableError)]
pub struct Error(TrackableError<ErrorKind>);
impl From<io::Error> for Error {
fn from(f: io::Error) -> Self {
ErrorKind::Other.cause(f).into()
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ErrorKind {
Invalid,
Other,
}
impl TrackableErrorKind for ErrorKind {}