Ruth
0
Q:

try except lua

require "try-catch"

try {
   function()
      error('oops')
   end,

   catch {
      function(error)
         print('caught error: ' .. error)
      end
   }
}
2

New to Communities?

Join the community