errorlist.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*##############################################################################
  2. Copyright (C) 2011 HPCC Systems.
  3. All rights reserved. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ############################################################################## */
  14. #ifndef _SYSTEM_ERROR_LIST_HPP__
  15. #define _SYSTEM_ERROR_LIST_HPP__
  16. // Define start and end ranges for error codes that may be thrown, written to a log, or returned in any manner
  17. // create a range that will be big enough
  18. // actual error codes do not belong in this file
  19. #define ERRORID_UNKNOWN 999 // Right now, this value is used to filter out error messages which have
  20. // not been verified for well-defined error code and message content. For
  21. // example, if an error code is not greater than this value, ECLWatch displays
  22. // the error as "internal system error".
  23. #define ECL_WARN_START 1000
  24. #define ECL_WARN_END 1099
  25. #define ROXIE_ERROR_START 1400 // roxie is already using this start value
  26. #define ROXIE_ERROR_END 1799
  27. #define ROXIE_MGR_START 1800 // used in esp service to communicate / gather info for roxie
  28. #define ROXIE_MGR_END 1999
  29. #define HQL_ERROR_START 2000 // 2000..3999 in hql, 4000..4999 in hqlcpp
  30. #define HQL_ERROR_END 4999
  31. #define WORKUNIT_ERROR_START 5000
  32. #define WORKUNIT_ERROR_END 5099
  33. #define WUWEB_ERROR_START 5500
  34. #define WUWEB_ERROR_END 5599
  35. #define REMOTE_ERROR_START 8000 // dafilesrv etc - see common/remote/remoteerr.hpp
  36. #define REMOTE_ERROR_END 8099
  37. #define DISPATCH_ERROR_START 9000
  38. #define DISPATCH_ERROR_END 9399
  39. #define QUERYREGISTRY_ERROR_START 9600
  40. #define QUERYREGISTRY_ERROR_END 9799
  41. #define JVM_API_ERROR_START 10000
  42. #define JVM_API_ERROR_END 10499
  43. #define ECLWATCH_ERROR_START 20000
  44. #define ECLWATCH_ERROR_END 29999
  45. #endif