MCPcopy Index your code
hub / github.com/Shopify/go-lua / Error

Method Error

lua.go:1171–1174  ·  view source on GitHub ↗

Error generates a Lua error. The error message must be on the stack top. The error can be any of any Lua type. This function will panic(). http://www.lua.org/manual/5.2/manual.html#lua_error

()

Source from the content-addressed store, hash-verified

1169//
1170// http://www.lua.org/manual/5.2/manual.html#lua_error
1171func (l *State) Error() {
1172 l.checkElementCount(1)
1173 l.errorMessage()
1174}
1175
1176// Next pops a key from the stack and pushes a key-value pair from the table
1177// at index, while the table has next elements. If there are no more

Callers 15

ExampleFunctionFunction · 0.45
base.goFile · 0.45
TestParserFunction · 0.45
TestEmptyStringFunction · 0.45
protectedTestParserFunction · 0.45
TestLuaFunction · 0.45
benchmarkSortFunction · 0.45
BenchmarkFibonnaciFunction · 0.45
TestUserDataEqualityNilFunction · 0.45

Calls 2

checkElementCountMethod · 0.95
errorMessageMethod · 0.95

Tested by 15

ExampleFunctionFunction · 0.36
TestParserFunction · 0.36
TestEmptyStringFunction · 0.36
protectedTestParserFunction · 0.36
TestLuaFunction · 0.36
benchmarkSortFunction · 0.36
BenchmarkFibonnaciFunction · 0.36
TestUserDataEqualityNilFunction · 0.36
TestErrorFunction · 0.36