fterror.hpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef FTERROR_HPP
  14. #define FTERROR_HPP
  15. #include "remoteerr.hpp"
  16. #define ERR_DFT_FIRST 8050
  17. #define ERR_DFT_LAST 8099
  18. #define DFTERR_CouldNotOpenFile 8050
  19. #define DFTERR_BadSrcTgtCombination 8051
  20. #define DFTERR_UnknownFileFormatType 8052
  21. #define DFTERR_CouldNotCreateOutput 8053
  22. #define DFTERR_FixedWidthInconsistent 8054
  23. #define DFTERR_FormatNotSpecified 8055
  24. #define DFTERR_UnknownFileFormatX 8056
  25. #define DFTERR_CouldNotOpenFilePart 8057
  26. #define DFTERR_FailedStartSlave 8058
  27. #define DFTERR_CopyFailed 8059
  28. #define DFTERR_ReplicateNumPartsDiffer 8060
  29. #define DFTERR_CopyFileOntoSelf 8061
  30. #define DFTERR_TargetFormatUnknownSource 8065
  31. #define DFTERR_MasterSeemsToHaveDied 8066
  32. #define DFTERR_NoSplitSourceLessTarget 8067
  33. #define DFTERR_NoSplitPushChangeFormat 8068
  34. #define DFTERR_ReplicateOptionNoSupported 8069
  35. #define DFTERR_NoReplicationActionGiven 8070
  36. #define DFTERR_MaxRecordSizeZero 8071
  37. #define DFTERR_NoConvertCsvOther 8072
  38. #define DFTERR_UnknownUTFFormat 8073
  39. #define DFTERR_UTFXNotYetSupported 8074
  40. #define DFTERR_OnlyConvertUtfUtf 8075
  41. #define DFTERR_PartsDoNotHaveSameUtfFormat 8076
  42. #define DFTERR_BadUtf8InArguments 8077
  43. #define DFTERR_InputIsInvalidMultiple 8078
  44. #define DFTERR_InputIsInvalidMultipleUtf 8079
  45. #define DFTERR_EndOfRecordNotFound 8080
  46. #define DFTERR_InputCrcMismatch 8081
  47. #define DFTERR_CannotKeepHeaderChangeFormat 8082
  48. #define DFTERR_PrefixCannotTransform 8083
  49. #define DFTERR_PrefixCannotAlsoAddHeader 8084
  50. #define DFTERR_InvalidPrefixFormat 8085
  51. #define DFTERR_PrefixTooSmall 8086
  52. #define DFTERR_UnexpectedReadFailure 8087
  53. #define DFTERR_NoPartsInDestination 8088
  54. #define DFTERR_PhysicalExistsNoOverwrite 8089
  55. #define DFTERR_InputOutputCrcMismatch 8090
  56. #define DFTERR_InvalidSplitPrefixFormat 8091
  57. #define DFTERR_SplitPrefixSingleTarget 8092
  58. #define DFTERR_SplitPrefixSameFormat 8093
  59. #define DFTERR_SplitNoSplitClash 8094
  60. #define DFTERR_NoFilesMatchWildcard 8095
  61. #define DFTERR_RowCompressedNotSupported 8096
  62. #define DFTERR_CannotPushAndCompress 8097
  63. #define DFTERR_CannotFindFirstXmlRecord 8098
  64. #define DFTERR_CannotFindLastXmlRecord 8099
  65. #define DFTERR_CouldNotOpenCompressedFile 8100
  66. #define DFTERR_EndOfXmlRecordNotFound 8101
  67. #define DFTERR_EndOfCsvRecordNotFound 8102
  68. #define DFTERR_EndOfUtfRecordNotFound 8103
  69. #define DFTERR_WrongRECFMvRecordDescriptorWord 8104
  70. #define DFTERR_WrongRECFMvbBlockDescriptorWord 8105
  71. #define DFTERR_WrongRECFMvbBlockSize 8106
  72. #define DFTERR_WrongRECFMvRecordSize 8107
  73. #define DFTERR_WrongSplitRecordSize 8108
  74. #define DFTERR_CannotFindFirstJsonRecord 8109
  75. #define DFTERR_InvalidXmlPartSize 8110
  76. #define DFTERR_InvalidFilePath 8111
  77. #define DFTERR_NoMatchingDropzonePath 8112
  78. #define DFTERR_LocalhostAddressUsed 8113
  79. #define DFTERR_InvalidSuperindexCopy 8114
  80. //Internal errors
  81. #define DFTERR_UnknownFormatType 8190
  82. #define DFTERR_OutputOffsetMismatch 8191
  83. #define DFTERR_NoSolarisDir 8192
  84. #define DFTERR_NoSolarisCopy 8193
  85. #define DFTERR_ReplicateSameFormat 8194
  86. #define DFTERR_PartitioningZeroSizedRowLink 8195
  87. #define DFTERR_CopyAborted 8196
  88. #define DFTERR_WrongComputer 8197
  89. //---- Text for all errors (make it easy to internationalise) ---------------------------
  90. #define DFTERR_CouldNotOpenFile_Text "Could not open source file %s"
  91. #define DFTERR_BadSrcTgtCombination_Text "This combination of source and target formats is not supported"
  92. #define DFTERR_UnknownFileFormatType_Text "Unknown file format"
  93. #define DFTERR_CouldNotCreateOutput_Text "Could not create output file %s"
  94. #define DFTERR_FixedWidthInconsistent_Text "Length of file %s is inconsistent with its record size"
  95. #define DFTERR_FormatNotSpecified_Text "Source file format is not specified or is unsuitable for (re-)partitioning"
  96. #define DFTERR_UnknownFileFormatX_Text "Unknown format '%s' for source file"
  97. #define DFTERR_CouldNotOpenFilePart_Text "Could not open file part %s"
  98. #define DFTERR_FailedStartSlave_Text "Failed to start child slave '%s'"
  99. #define DFTERR_CopyFailed_Text "Copy failed (unknown reason)"
  100. #define DFTERR_ReplicateNumPartsDiffer_Text "Number of parts in source and target must match when replicating"
  101. #define DFTERR_CopyFileOntoSelf_Text "Trying to copy a file (%s) onto itself"
  102. #define DFTERR_TargetFormatUnknownSource_Text "Cannot omit source format if target format is supplied"
  103. #define DFTERR_MasterSeemsToHaveDied_Text "Master program seems to have died..."
  104. #define DFTERR_NoSplitSourceLessTarget_Text "NOSPLIT is not valid if there more targets than sources"
  105. #define DFTERR_NoSplitPushChangeFormat_Text "NOSPLIT is not supported for a push operation which also changes format"
  106. #define DFTERR_ReplicateOptionNoSupported_Text "Replication option %s isn't yet supported"
  107. #define DFTERR_NoReplicationActionGiven_Text "No replicate action supplied"
  108. #define DFTERR_MaxRecordSizeZero_Text "Maximum record size must be larger than 0"
  109. #define DFTERR_NoConvertCsvOther_Text "Conversion between csv and other formats is not yet supported"
  110. #define DFTERR_UnknownUTFFormat_Text "Unknown utf format: %s"
  111. #define DFTERR_UTFXNotYetSupported_Text "UTF format %s isn't yet supported"
  112. #define DFTERR_OnlyConvertUtfUtf_Text "Can only comnvert utf to other utf formats"
  113. #define DFTERR_PartsDoNotHaveSameUtfFormat_Text "Input files do not have the same utf format"
  114. #define DFTERR_BadUtf8InArguments_Text "The utf separators/terminators aren't valid utf-8"
  115. #define DFTERR_InputIsInvalidMultiple_Text "Source file %s is not a valid multiple of the expected record size (%d)"
  116. #define DFTERR_InputIsInvalidMultipleUtf_Text "Source file %s is not a valid multiple of the utf character width (%d)"
  117. #define DFTERR_EndOfRecordNotFound_Text "End of record not found (need to increase maxRecordSize?)"
  118. #define DFTERR_CannotKeepHeaderChangeFormat_Text "keepHeader option cannot be used if pushing and converting formats"
  119. #define DFTERR_PrefixCannotTransform_Text "Adding a length prefix cannot be done why transforming formats"
  120. #define DFTERR_PrefixCannotAlsoAddHeader_Text "Cannot add length prefixes and also add headers"
  121. #define DFTERR_InvalidPrefixFormat_Text "Invalid length prefix: '%s'"
  122. #define DFTERR_PrefixTooSmall_Text "Length prefix too small to store source length"
  123. #define DFTERR_UnexpectedReadFailure_Text "Unexpected read failure at file %s[%" I64F "d]"
  124. #define DFTERR_NoPartsInDestination_Text "Destination does not have any parts"
  125. #define DFTERR_PhysicalExistsNoOverwrite_Text "OVERWRITE not supplied and physical file %s exists"
  126. #define DFTERR_InvalidSplitPrefixFormat_Text "Cannot process file %s using the splitprefix supplied"
  127. #define DFTERR_SplitPrefixSingleTarget_Text "SplitPrefix can only name a single target file"
  128. #define DFTERR_SplitPrefixSameFormat_Text "SplitPrefix cannot perform a format converstion"
  129. #define DFTERR_SplitNoSplitClash_Text "/splitprefix is not compatible with /nosplit"
  130. #define DFTERR_NoFilesMatchWildcard_Text "The wildcarded source did not match any filenames"
  131. #define DFTERR_RowCompressedNotSupported_Text "Cannot copy from a legacy row compressed file"
  132. #define DFTERR_CannotPushAndCompress_Text "Need to pull the data when compressing the output"
  133. #define DFTERR_CannotFindFirstXmlRecord_Text "Could not find the start of the first record"
  134. #define DFTERR_CouldNotOpenCompressedFile_Text "Could not open file %s as compressed file"
  135. #define DFTERR_EndOfXmlRecordNotFound_Text "End of XML record not found (need to increase maxRecordSize?)! At offset:%" I64F "d, record size (>%d bytes) is larger than expected maxRecordSize (%d bytes)."
  136. #define DFTERR_EndOfCsvRecordNotFound_Text "End of CSV record not found (wrong record terminator defined or need to increase maxRecordSize?) after processing %d bytes!"
  137. #define DFTERR_EndOfUtfRecordNotFound_Text "End of UTF record not found (wrong record terminator defined or need to increase maxRecordSize?) after processing %d bytes!"
  138. #define DFTERR_WrongRECFMvRecordDescriptorWord_Text "RECFMv(b) file Record Description Word contains invalid data (0x%04x) or the file is not RECFMv(b) format!"
  139. #define DFTERR_WrongRECFMvbBlockDescriptorWord_Text "RECFMvb file Block Description Word contains invalid data (0x%08x) or the file is not RECFMvb format!"
  140. #define DFTERR_WrongRECFMvbBlockSize_Text "Invalid RECFMvb file Block Size (%d) or the file is not RECFMvb format!"
  141. #define DFTERR_WrongRECFMvRecordSize_Text "Invalid RECFMv file Record Size (%d) or the file is not RECFMv format!"
  142. #define DFTERR_WrongSplitRecordSize_Text "Invalid Record Size (%d, 0x%08x)!"
  143. #define DFTERR_InvalidXmlPartSize_Text "Invalid XML part size:%" I64F "d! Size is less than XML Header (%" I64F "d) + Footer (%" I64F "d)) size!"
  144. #define DFTERR_InvalidFilePath_Text "Invalid file path: '%s'. For security reason it is forbidden to use '%s' or '%s' to build a path!"
  145. #define DFTERR_NoMatchingDropzonePath_Text "No Drop Zone on '%s' configured at '%s'."
  146. #define DFTERR_LocalhostAddressUsed_Text "Localhost address used in remote file name: '%s'"
  147. #define DFTERR_InvalidSuperindexCopy_Text "Source file %s is a super index file but copying as a simple logical file"
  148. #define DFTERR_UnknownFormatType_Text "INTERNAL: Save unknown format type"
  149. #define DFTERR_OutputOffsetMismatch_Text "INTERNAL: Output offset does not match expected (%" I64F "d expected %" I64F "d) at %s of block %d"
  150. #define DFTERR_NoSolarisDir_Text "Directory not yet supported for solaris"
  151. #define DFTERR_NoSolarisCopy_Text "Copy not yet supported for solaris"
  152. #define DFTERR_ReplicateSameFormat_Text "INTERNAL: Replicate cannot convert formats"
  153. #define DFTERR_PartitioningZeroSizedRowLink_Text "Zero sized row link in source file at %" I64F "d - cannot partition"
  154. #define DFTERR_CopyAborted_Text "Copy failed - User Abort"
  155. #define DFTERR_WrongComputer_Text "INTERNAL: Command send to wrong computer. Expected %s got %s"
  156. #endif