threaderror.lua 686 B

12345678910111213141516171819202122232425262728
  1. return {
  2. tag = 'callbacks',
  3. summary = 'Called when an error occurs in a thread.',
  4. description = [[
  5. The `lovr.threaderror` callback is called whenever an error occurs in a Thread. It receives the
  6. Thread object where the error occurred and an error message.
  7. The default implementation of this callback will call `lovr.errhand` with the error.
  8. ]],
  9. arguments = {
  10. {
  11. name = 'thread',
  12. type = 'Thread',
  13. description = 'The Thread that errored.'
  14. },
  15. {
  16. name = 'message',
  17. type = 'string',
  18. description = 'The error message.'
  19. }
  20. },
  21. returns = {},
  22. related = {
  23. 'Thread',
  24. 'Thread:getError',
  25. 'lovr.errhand'
  26. }
  27. }