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

Method ArgError

auxlib.go:244–246  ·  view source on GitHub ↗

* }}} */ * error operations {{{ */

(n int, message string)

Source from the content-addressed store, hash-verified

242/* error operations {{{ */
243
244func (ls *LState) ArgError(n int, message string) {
245 ls.RaiseError("bad argument #%v to %v (%v)", n, ls.rawFrameFuncName(ls.currentFrame), message)
246}
247
248func (ls *LState) TypeError(n int, typ LValueType) {
249 ls.RaiseError("bad argument #%v to %v (%v expected, got %v)", n, ls.rawFrameFuncName(ls.currentFrame), typ.String(), ls.Get(n).Type().String())

Callers 13

CheckAnyMethod · 0.95
CheckTypesMethod · 0.95
CheckOptionMethod · 0.95
baseSelectFunction · 0.80
checkFileFunction · 0.80
errorIfFileIsClosedFunction · 0.80
fileReadAuxFunction · 0.80
ioInputFunction · 0.80
ioOutputFunction · 0.80
debugGetLocalFunction · 0.80
debugSetLocalFunction · 0.80
checkGoroutineSafeFunction · 0.80

Calls 2

RaiseErrorMethod · 0.95
rawFrameFuncNameMethod · 0.95

Tested by

no test coverage detected