Lua.RuntimeException exception (Lua v1.0.0-rc.1)

View Source

Raised when a Lua program fails at runtime — bad argument types, arithmetic on a non-number, indexing a nil, an explicit error() call from Lua, or any other dynamic failure inside the VM.

Fields:

  • :message — formatted error string
  • :original — the underlying VM error term
  • :stateLua.VM.State at the point of failure
  • :line — line number where the error was raised
  • :source — source name (filename or <stdin>)
  • :call_stack — list of Lua frames at failure

Summary

Types

t()

@type t() :: %Lua.RuntimeException{
  __exception__: true,
  call_stack: term(),
  line: term(),
  message: term(),
  original: term(),
  source: term(),
  state: term()
}