orion_lib 7.4.0

A library for parsing and executing the Orion Programming Language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The error module.

use thiserror::Error;

/// The errors.
#[derive(Error, Debug)]
pub enum Errors {
    /// Error on a line `line` with message `msg`.
    #[error("line {line}: {msg}")]
    LineError { line: usize, msg: String },

    /// A general error.
    #[error("{0}")]
    GeneralError(String),
}