1
2
3
4
5

#[macro_export]
macro_rules! custom_error {
    ($i:expr,$e:expr) => { Err(Err::Error(Context::Code($i,ErrorKind::Custom($e))))};
}