xpcall
Definition
-- @/=[C]:-1
function xpcall(...)
Callers
@/lua/ge/extensions/editor/flowgraph/nodePreview.lua
ui_flowgraph_editor.SetCurrentEditor(self.previewEctx)
local status, err, res = xpcall(node.draw, debug.traceback, node, builder, style, drawType)
if not status then
@/lua/ge/extensions/editor/api/valueInspector.lua
if not json then json = require("json") end
local state, data = xpcall(function() return json.decode(content) end, debug.traceback)
if state == false then
@/lua/ge/extensions/flowgraph/basenode.lua
self._frameLastUsed = self.graph.mgr.frameCount
status, err, res = xpcall(self.work, debug.traceback, self)
self:checkAutomatedFlow()
function C:_onNodeReset()
status, err, res = xpcall(self.onNodeReset, debug.traceback, self)
if not status then
if not self._dynamicDone then
status, err, res = xpcall(self.workOnce, debug.traceback, self)
self.workCount = self.workCount + 1
if self._dynamicDone then
status, err, res = xpcall(self.work, debug.traceback, self)
self:checkAutomatedFlow()
--self:drawMiddle(builder, style)
local status, err, res = xpcall(self._drawMiddle, debug.traceback, self, builder, style, drawType)
if not status then
@/lua/ge/extensions/gameplay/drag/general.lua
local status, ret = xpcall(function() return type(deserialize(vehicle.partConfig)) end, nop)
racer.stock = not ret
@/lua/common/utils.lua
if not json then json = require("json") end
local state, data = xpcall(function() return json.decode(content) end, debug.traceback)
if state == false then
if isPackage(k, v) and type(v) == 'table' and (v['onDeserialized'] ~= nil or v['onSerialize'] ~= nil) then
local success, result = xpcall(_unsafeSerializePackage, debug.traceback, k, v, reason)
if success then
if isPackage(k, v) and (filter == nil or k == filter) and type(v) == 'table' and (v['onDeserialized'] ~= nil or v['onDeserialize'] ~= nil) and data[k] ~= nil then
local success, err = xpcall(_unsafeDeserializePackage, debug.traceback, k, v, data)
if not success then
@/lua/ge/main.lua
function sendUIModules()
local ok = xpcall(function()
guihooks.trigger('onUIBootstrap', FS:directoryList('/ui/modModules/', false, true))
@/lua/ge/extensions/util/wsTest.lua
end
local ok, result = xpcall(func, debug.traceback)
if not ok then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamBeautifier.lua
local function jsonDebugDecode(content, context)
local state, data, warnings = xpcall(function() return jsonDebug.decode(content, context) end, debug.traceback)
if state == false then
@/lua/common/libs/xlsxlib/tests/TestManager.lua
local testStartTime = socket.gettime()
local status, err = xpcall(function() func(tests, textFuncContext) end, function(e) return e end)
local testEndTime = socket.gettime()
@/lua/common/extensions.lua
for _, searcher in ipairs(package.searchers or package.loaders) do
local state, loader = xpcall(function() return searcher(extPath) end, debug.traceback)
if state == false then
@/lua/ge/extensions/editor/missionEditor/progressSingle.lua
local progressString = ffi.string(self._text[1])
local state, newSaveData = xpcall(function() return jsonDecode(progressString) end, debug.traceback)
if newSaveData == nil or state == false then
@/lua/ge/extensions/editor/missionEditor/progressSetup.lua
local progressString = ffi.string(self._text[1])
local state, newSaveData = xpcall(function() return jsonDecode(progressString) end, debug.traceback)
if newSaveData == nil or state == false then
@/lua/console/json-performance.lua
--print(' * ' ..tostring(filename))
local state, data = xpcall(jdecode, debug.traceback, content)
if state == false then
@/lua/common/utils/interactiveShell.lua
if execTimer then execTimer:reset() end
local ok, result = xpcall(func, debug.traceback)
if not ok then
@/lua/common/devUtils.lua
local ok, result = xpcall(func, debug.traceback)
if ok then
@/lua/ge/extensions/core/vehicle/manager.lua
local status, err = xpcall(function () vehicleBundle = jbeamLoader.loadVehicleStage1(objID, vehicleDir, vehicleConfig) end, debug.traceback)
vehicles[objID] = vehicleBundle
@/lua/common/libs/timerwheel/timerwheel.lua
count = count - 1
xpcall(cb, err_handler, arg)
end
@/lua/ge/extensions/gameplay/missions/missions.lua
-- actually construct the mission
local result, mission, add = xpcall(function()
return missionTypeConstructor(deepcopy(missionData))
if FS:fileExists(customPath..".lua") then
local result, err = xpcall(function()
local missionConstructor = require(customPath)() -- gets it as if it was a module, then merges all non-init pairs
@/lua/ge/extensions/util/testJSONFilesSyntax.lua
local function jsonDebugDecode(content, context)
local state, data, warnings = xpcall(function() return jsonDebug.decode(content, context) end, debug.traceback)
if state == false then
@/lua/vehicle/partCondition.lua
for partId, _ in pairs(activeParts) do
xpcall(
function()
@/lua/ge/extensions/gameplay/missions/progress.lua
if FS:fileExists(permaLogFile) then
local state, result = xpcall(function()
return jsonReadFile(permaLogFile)
plog("I", "aggregating mission custom progress.")
local succ, err, agg = xpcall(function()
mission:aggregateAttempt(mission.saveData, progress, attempt, aggregate, aggregateChange)
if mission.setupSaveData then
local succ, err, prog = xpcall(function()
mission:setupSaveData(ret)
if FS:fileExists(path) then
local state, result = xpcall(function()
local saveData = jsonReadFile(path)
if mission.loadSaveData then
local succ, err, prog = xpcall(function()
mission:loadSaveData(saveData)
@/lua/ge/extensions/flowgraph/manager.lua
for _, m in ipairs(ms) do
local status, err, res = xpcall(m[h], debug.traceback, m, ...)
if not status then
@/lua/ge/extensions/editor/missionEditor/objectives.lua
local progressString = ffi.string(self._text[1])
local state, newSaveData = xpcall(function() return jsonDecode(progressString) end, debug.traceback)
if newSaveData == nil or state == false then
@/lua/ge/extensions/gameplay/missions/missionManager.lua
local script
local result = xpcall(function()
script = require(scriptPath)
@/lua/ge/extensions/editor/flowgraph/main.lua
local dec
local status, err, res = xpcall(function() dec = lpack.decode(ffi.string(im.GetClipboardText())) end, debug.traceback)
if dec then
for k, node in pairs(graph.nodes) do
local status, err, res = xpcall(node.draw, debug.traceback, node, builder, style, drawType)
if not status then
@/lua/common/testFramework/TestManager.lua
local testStartTime = socket.gettime()
local status, err = xpcall(function() func(tests, textFuncContext) end, function(e) return e end)
local testEndTime = socket.gettime()
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
local progressString = ffi.string(self._text[1])
local state, newProgress = xpcall(function() return jsonDecode(progressString) end, debug.traceback)
if newProgress == nil or state == false then