Enum hlua::LuaError
[−]
[src]
pub enum LuaError { SyntaxError(String), ExecutionError(String), ReadError(IoError), WrongType, }
Error that can happen when executing Lua code.
Variants
SyntaxError(String)
There was a syntax error when parsing the Lua code.
ExecutionError(String)
There was an error during execution of the Lua code (for example not enough parameters for a function call).
ReadError(IoError)
There was an IoError while reading the source code to execute.
WrongType
The call to execute
has requested the wrong type of data.
Trait Implementations
impl From<LuaFunctionCallError<Void>> for LuaError
[src]
fn from(err: LuaFunctionCallError<Void>) -> LuaError
[src]
Performs the conversion.
impl Debug for LuaError
[src]
impl Display for LuaError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for LuaError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more