pub enum LispError {
SyntaxError {
exp: String,
},
TypeError,
UndefinedSymbol {
sym: String,
},
TooManyArguments {
n_args: usize,
right_num: usize,
},
NoArgumentsProvided {
symbol: String,
},
NotAList {
atom: String,
},
NullList,
NotAProcedure {
exp: String,
},
}
Expand description
Multipurpose error type.
Variants§
SyntaxError
TypeError
UndefinedSymbol
TooManyArguments
NoArgumentsProvided
NotAList
NullList
NotAProcedure
Trait Implementations§
source§impl Fail for LispError
impl Fail for LispError
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