Enum umbra_lang::Error [−][src]
pub enum Error {
Argument(String),
Parse(String, Option<Pos>),
Script(String, Option<Pos>),
Control(String, Option<Box<TVal>>),
Custom(TVal),
}
Expand description
An error that occured during argument handling, parsing, script execution, or for control flow or other purposes.
Variants
Argument(String)
A provided argument is invalid.
Tuple Fields of Argument
0: String
The Token stream could not be reduced to a valid AST.
The script encountered an error during execution.
A control flow macro such as return
created this error.
Custom(TVal)
An error from the script that couldn’t be parsed as any other error.
Tuple Fields of Custom
0: TVal
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more