Error happened while executing Lua script
| 45 | |
| 46 | |
| 47 | class 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 | |
| 60 | class JsError(Exception): |
no outgoing calls
no test coverage detected