gearman_worker_error.rst 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. =============================
  2. Errors returned to the worker
  3. =============================
  4. --------
  5. SYNOPSIS
  6. --------
  7. #include <libgearman/gearman.h>
  8. .. c:function:: const char *gearman_worker_error(const gearman_worker_st *worker)
  9. .. c:function:: int gearman_worker_errno(gearman_worker_st *worker)
  10. Link with -lgearman
  11. -----------
  12. DESCRIPTION
  13. -----------
  14. :c:func:`gearman_worker_error` and :c:func:`gearman_worker_errno` report on the last errors that the worker reported/stored in :c:type:`gearman_worker_st`. If you are interested in recording all errors please see :c:func:`gearman_worker_set_log_fn`.
  15. ------------
  16. RETURN VALUE
  17. ------------
  18. :c:func:`gearman_worker_errno` returns the last :manpage:`errno` that the worker recorded.
  19. ----
  20. HOME
  21. ----
  22. To find out more information please check:
  23. `https://gearman.org/gearmand/ <https://gearman.org/gearmand/>`_
  24. .. seealso::
  25. :manpage:`gearmand(8)` :manpage:`libgearman(3)`