MCPcopy Index your code
hub / github.com/yuin/gopher-lua / RaiseError

Method RaiseError

state.go:1729–1731  ·  view source on GitHub ↗

This function is equivalent to luaL_error( http://www.lua.org/manual/5.1/manual.html#luaL_error ).

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

1727
1728// This function is equivalent to luaL_error( http://www.lua.org/manual/5.1/manual.html#luaL_error ).
1729func (ls *LState) RaiseError(format string, args ...interface{}) {
1730 ls.raiseError(1, format, args...)
1731}
1732
1733// This function is equivalent to lua_error( http://www.lua.org/manual/5.1/manual.html#lua_error ).
1734func (ls *LState) Error(lv LValue, level int) {

Callers 15

ArgErrorMethod · 0.95
TypeErrorMethod · 0.95
RegisterModuleMethod · 0.95
PreloadModuleMethod · 0.95
pushCallFrameMethod · 0.95
getFieldMethod · 0.95
getFieldStringMethod · 0.95
setFieldMethod · 0.95
setFieldStringMethod · 0.95
ReplaceMethod · 0.95
PopMethod · 0.95
registryOverflowMethod · 0.95

Calls 1

raiseErrorMethod · 0.95

Tested by 2

TestPCallFunction · 0.36
TestPCallAfterFailFunction · 0.36