/classads-1.0.8/classad/classadErrno.h

# · C Header · 80 lines · 49 code · 13 blank · 18 comment · 0 complexity · 2e16f5bf20678af48472a9cb148a81c4 MD5 · raw file

  1. /***************************************************************
  2. *
  3. * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
  4. * University of Wisconsin-Madison, WI.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License"); you
  7. * may not use this file except in compliance with the License. You may
  8. * obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. ***************************************************************/
  19. #ifndef __CLASSAD_ERRNO_H__
  20. #define __CLASSAD_ERRNO_H__
  21. #include "classad/common.h"
  22. BEGIN_NAMESPACE(classad)
  23. static const int ERR_OK = 0;
  24. static const int ERR_MEM_ALLOC_FAILED = 1;
  25. static const int ERR_BAD_VALUE = 255;
  26. static const int ERR_FAILED_SET_VIEW_NAME = 256;
  27. static const int ERR_NO_RANK_EXPR = 257;
  28. static const int ERR_NO_REQUIREMENTS_EXPR = 258;
  29. static const int ERR_BAD_PARTITION_EXPRS = 259;
  30. static const int ERR_PARTITION_EXISTS = 260;
  31. static const int ERR_MISSING_ATTRNAME = 261;
  32. static const int ERR_BAD_EXPRESSION = 262;
  33. static const int ERR_INVALID_IDENTIFIER = 263;
  34. static const int ERR_MISSING_ATTRIBUTE = 264;
  35. static const int ERR_NO_SUCH_VIEW = 265;
  36. static const int ERR_VIEW_PRESENT = 266;
  37. static const int ERR_TRANSACTION_EXISTS = 267;
  38. static const int ERR_NO_SUCH_TRANSACTION = 268;
  39. static const int ERR_NO_REPRESENTATIVE = 269;
  40. static const int ERR_NO_PARENT_VIEW = 270;
  41. static const int ERR_BAD_VIEW_INFO = 271;
  42. static const int ERR_BAD_TRANSACTION_STATE = 272;
  43. static const int ERR_NO_SUCH_CLASSAD = 273;
  44. static const int ERR_BAD_CLASSAD = 275;
  45. static const int ERR_NO_KEY = 276;
  46. static const int ERR_LOG_OPEN_FAILED = 277;
  47. static const int ERR_BAD_LOG_FILENAME = 278;
  48. static const int ERR_NO_VIEW_NAME = 379;
  49. static const int ERR_RENAME_FAILED = 280;
  50. static const int ERR_NO_TRANSACTION_NAME = 281;
  51. static const int ERR_PARSE_ERROR = 282;
  52. static const int ERR_INTERNAL_CACHE_ERROR = 283;
  53. static const int ERR_FILE_WRITE_FAILED = 284;
  54. static const int ERR_FATAL_ERROR = 285;
  55. static const int ERR_CANNOT_CHANGE_MODE = 286;
  56. static const int ERR_CONNECT_FAILED = 287;
  57. static const int ERR_CLIENT_NOT_CONNECTED = 288;
  58. static const int ERR_COMMUNICATION_ERROR = 289;
  59. static const int ERR_BAD_CONNECTION_TYPE = 290;
  60. static const int ERR_BAD_SERVER_ACK = 291;
  61. static const int ERR_CANNOT_REPLACE =292;
  62. static const int ERR_CACHE_SWITCH_ERROR =293;
  63. static const int ERR_CACHE_FILE_ERROR =294;
  64. static const int ERR_CACHE_CLASSAD_ERROR =295;
  65. static const int ERR_CANT_LOAD_DYNAMIC_LIBRARY = 296;
  66. END_NAMESPACE //classad
  67. #endif