legion-error 0.0.0

High level intermediate representation for Nyar
Documentation
use std::{
    error::Error,
    fmt::{Debug, Display, Formatter},
    path::PathBuf,
};

mod from_std;

pub struct LegionError {
    kind: LegionErrorKind,
}

pub enum LegionErrorKind {
    IoError { source: std::io::Error, path: Option<PathBuf> },
}

impl Debug for LegionError {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        todo!()
    }
}

impl Display for LegionError {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        todo!()
    }
}

impl Error for LegionError {}

impl Debug for LegionErrorKind {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        todo!()
    }
}

impl Display for LegionErrorKind {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        todo!()
    }
}

impl Error for LegionErrorKind {}