Enum rlua::LuaError [] [src]

pub enum LuaError {
    SyntaxError(LuaSyntaxError),
    RuntimeError(String),
    ErrorError(String),
    ConversionError(LuaConversionError),
    StackOverflow,
    CoroutineInactive,
    UserDataError(LuaUserDataError),
    CallbackError(StringArc<LuaError>),
    ExternalError(Arc<Error + Send + Sync>),
}

Variants

Lua syntax error, aka LUA_ERRSYNTAX.

Lua runtime error, aka LUA_ERRRUN.

Lua error from inside an error handler, aka LUA_ERRERR.

An error resulting from a Lua <-> Rust type conversion

Insufficient Lua stack space.

A LuaThread was resumed and the coroutine was no longer active.

A LuaUserData borrow of the internal value failed.

Lua error that originated as a LuaError in a callback. The first field is the lua error as a string, the second field is the Arc holding the original LuaError.

Any custom external error type, mostly useful for returning external error types from callbacks.

Methods

impl LuaError
[src]

Trait Implementations

impl Debug for LuaError
[src]

Formats the value using the given formatter.

impl Clone for LuaError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for LuaError
[src]

Formats the value using the given formatter. Read more

impl Error for LuaError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<LuaSyntaxError> for LuaError
[src]

Performs the conversion.

impl From<LuaConversionError> for LuaError
[src]

Performs the conversion.

impl From<LuaUserDataError> for LuaError
[src]

Performs the conversion.

impl<'lua> ToLua<'lua> for LuaError
[src]

Performs the conversion.

impl<'lua> FromLua<'lua> for LuaError
[src]

Performs the conversion.