Trait cranefack::CraneFackError[][src]

pub trait CraneFackError: Error {
    fn get_message(&self) -> (Option<Range<usize>>, String, Option<String>);

    fn pretty_print(
        &self,
        source: &str,
        filename: Option<&str>
    ) -> Result<(), Box<dyn Error>> { ... } }
Expand description

Trait all internal errors must implement

Required methods

Return error message with optional source position and optional source label

Provided methods

Print error to stderr with colors and other fancy stuff

Implementors