HError.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*****************************************************************************
  2. * HError.h
  3. *****************************************************************************
  4. *
  5. * Project: HALCON/libhalcon
  6. * Description: Error messages
  7. *
  8. * (c) 1996-2020 by MVTec Software GmbH
  9. * www.mvtec.com
  10. *
  11. *****************************************************************************
  12. *
  13. *
  14. */
  15. #ifndef HERROR_H
  16. #define HERROR_H
  17. #if defined(__cplusplus)
  18. extern "C" {
  19. #endif
  20. extern HLibExport Herror HSetExtendedErrorInfo(Hproc_handle ph,
  21. INT4_8 error_code,
  22. char const* error_message);
  23. extern HLibExport Herror HSetExtendedErrorInfoF(Hproc_handle ph,
  24. INT4_8 error_code,
  25. char const* error_message,
  26. ...);
  27. extern HLibExport Herror HClearExtendedErrorInfo(Hproc_handle ph);
  28. extern HLibExport Herror HSetErrText(char* text);
  29. extern HLibExport Herror HErrText(Herror message, char* err_text);
  30. extern HLibExport Herror HErrorMessage(Herror message, char* msg_text);
  31. #if defined(__cplusplus)
  32. }
  33. #endif
  34. #endif