MCPcopy
hub / github.com/scrapinghub/splash / ScriptError

Class ScriptError

splash/errors.py:47–57  ·  view source on GitHub ↗

Error happened while executing Lua script

Source from the content-addressed store, hash-verified

45
46
47class ScriptError(BadOption):
48 """ Error happened while executing Lua script """
49 LUA_INIT_ERROR = 'LUA_INIT_ERROR' # error happened before coroutine starts
50 LUA_ERROR = 'LUA_ERROR' # lua error() is called from the coroutine
51 LUA_CONVERT_ERROR = 'LUA_CONVERT_ERROR' # result can't be converted to Python
52 SPLASH_LUA_ERROR = 'SPLASH_LUA_ERROR' # custom error raised by Splash
53 BAD_MAIN_ERROR = 'BAD_MAIN_ERROR' # main() definition is incorrect
54 MAIN_NOT_FOUND_ERROR = 'MAIN_NOT_FOUND_ERROR' # main() is not found
55 SYNTAX_ERROR = 'SYNTAX_ERROR' # XXX: unused; reported as INIT_ERROR now
56 JS_ERROR = 'JS_ERROR' # error in a wrapped JS function
57 UNKNOWN_ERROR = 'UNKNOWN_ERROR'
58
59
60class JsError(Exception):

Callers 15

dispatchMethod · 0.90
__call__Method · 0.90
waitMethod · 0.90
with_timeoutMethod · 0.90
goMethod · 0.90
validate_regionMethod · 0.90
evaljsMethod · 0.90
_http_requestMethod · 0.90
http_postMethod · 0.90
autoloadMethod · 0.90
_assert_numberMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected