Try except lua

This article is tagged with: Try except lua and lua

try except lua

require "try-catch"
try {
function()
error('oops')
end,
catch {
function(error)
print('caught error: ' .. error)
end
}
}

This article is tagged with: Try except lua and lua