Skip to main content

Module error

Module error 

Source
Expand description

Error types for rilua.

Maps to PUC-Rio’s error status codes:

  • LUA_ERRRUN (2) — runtime error
  • LUA_ERRSYNTAX (3) — syntax error during parsing
  • LUA_ERRMEM (4) — memory allocation error
  • LUA_ERRERR (5) — error in error handler

Structs§

RuntimeError
Runtime error with error object and traceback.
SyntaxError
Syntax error with source location.
TraceEntry
A single entry in a stack traceback.

Enums§

LuaError
Top-level error type for all rilua errors.

Functions§

chunkid
Formats a raw source name for display in error messages.
runtime_error
Creates a LuaError::Runtime with the given message.

Type Aliases§

LuaResult
Result type alias used throughout rilua.