pub enum Error {
Interpreter(Error),
Ir(Error),
Parser(Error),
}
Expand description
An error that occurs while interacting with Tin.
Variants§
Interpreter(Error)
Interpreting the code failed.
This can happen either during an interpreter run, or during compiler constant evaluation which internally uses the interpreter.
Ir(Error)
Semantically understanding the source code failed.
Parser(Error)
Parsing the source code failed.
Trait Implementations§
source§impl Diagnostic for Error
impl Diagnostic for Error
source§fn to_diagnostics(&self, result: &mut Vec<Diagnostic>)
fn to_diagnostics(&self, result: &mut Vec<Diagnostic>)
Emits diagnostics from an instance of this type.
source§impl Fail for Error
impl Fail for Error
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more