error_codes.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. #pragma once
  2. //
  3. // generated by generate-error-codes.py
  4. //
  5. namespace NYT {
  6. namespace NClusterErrorCodes {
  7. // from ./core/misc/public.h
  8. ////////////////////////////////////////////////////////////////////////////////
  9. constexpr int OK = 0;
  10. constexpr int Generic = 1;
  11. constexpr int Canceled = 2;
  12. constexpr int Timeout = 3;
  13. ////////////////////////////////////////////////////////////////////////////////
  14. // from ./core/rpc/public.h
  15. namespace NRpc {
  16. ////////////////////////////////////////////////////////////////////////////////
  17. constexpr int TransportError = 100;
  18. constexpr int ProtocolError = 101;
  19. constexpr int NoSuchService = 102;
  20. constexpr int NoSuchMethod = 103;
  21. constexpr int Unavailable = 105;
  22. constexpr int PoisonPill = 106;
  23. constexpr int RequestQueueSizeLimitExceeded = 108;
  24. constexpr int AuthenticationError = 109;
  25. constexpr int InvalidCsrfToken = 110;
  26. constexpr int InvalidCredentials = 111;
  27. constexpr int StreamingNotSupported = 112;
  28. ////////////////////////////////////////////////////////////////////////////////
  29. } // namespace NRpc
  30. // from ./core/bus/public.h
  31. namespace NBus {
  32. ////////////////////////////////////////////////////////////////////////////////
  33. constexpr int TransportError = 100;
  34. ////////////////////////////////////////////////////////////////////////////////
  35. } // namespace NBus
  36. // from ./client/scheduler/public.h
  37. namespace NScheduler {
  38. ////////////////////////////////////////////////////////////////////////////////
  39. constexpr int NoSuchOperation = 200;
  40. constexpr int InvalidOperationState = 201;
  41. constexpr int TooManyOperations = 202;
  42. constexpr int NoSuchJob = 203;
  43. constexpr int OperationFailedOnJobRestart = 210;
  44. constexpr int OperationFailedWithInconsistentLocking = 211;
  45. constexpr int OperationControllerCrashed = 212;
  46. constexpr int TestingError = 213;
  47. ////////////////////////////////////////////////////////////////////////////////
  48. } // namespace NScheduler
  49. // from ./client/table_client/public.h
  50. namespace NTableClient {
  51. ////////////////////////////////////////////////////////////////////////////////
  52. constexpr int SortOrderViolation = 301;
  53. constexpr int InvalidDoubleValue = 302;
  54. constexpr int IncomparableType = 303;
  55. constexpr int UnhashableType = 304;
  56. // E.g. name table with more than #MaxColumnId columns (may come from legacy chunks).
  57. constexpr int CorruptedNameTable = 305;
  58. constexpr int UniqueKeyViolation = 306;
  59. constexpr int SchemaViolation = 307;
  60. constexpr int RowWeightLimitExceeded = 308;
  61. constexpr int InvalidColumnFilter = 309;
  62. constexpr int InvalidColumnRenaming = 310;
  63. constexpr int IncompatibleKeyColumns = 311;
  64. constexpr int ReaderDeadlineExpired = 312;
  65. constexpr int TimestampOutOfRange = 313;
  66. ////////////////////////////////////////////////////////////////////////////////
  67. } // namespace NTableClient
  68. // from ./client/cypress_client/public.h
  69. namespace NCypressClient {
  70. ////////////////////////////////////////////////////////////////////////////////
  71. constexpr int SameTransactionLockConflict = 400;
  72. constexpr int DescendantTransactionLockConflict = 401;
  73. constexpr int ConcurrentTransactionLockConflict = 402;
  74. constexpr int PendingLockConflict = 403;
  75. constexpr int LockDestroyed = 404;
  76. ////////////////////////////////////////////////////////////////////////////////
  77. } // namespace NCypressClient
  78. // from ./core/ytree/public.h
  79. namespace NYTree {
  80. ////////////////////////////////////////////////////////////////////////////////
  81. constexpr int ResolveError = 500;
  82. constexpr int AlreadyExists = 501;
  83. constexpr int MaxChildCountViolation = 502;
  84. constexpr int MaxStringLengthViolation = 503;
  85. constexpr int MaxAttributeSizeViolation = 504;
  86. constexpr int MaxKeyLengthViolation = 505;
  87. ////////////////////////////////////////////////////////////////////////////////
  88. } // namespace NYTree
  89. // from ./client/hydra/public.h
  90. namespace NHydra {
  91. ////////////////////////////////////////////////////////////////////////////////
  92. constexpr int NoSuchSnapshot = 600;
  93. constexpr int NoSuchChangelog = 601;
  94. constexpr int InvalidEpoch = 602;
  95. constexpr int InvalidVersion = 603;
  96. constexpr int OutOfOrderMutations = 609;
  97. constexpr int InvalidSnapshotVersion = 610;
  98. ////////////////////////////////////////////////////////////////////////////////
  99. } // namespace NHydra
  100. // from ./client/chunk_client/public.h
  101. namespace NChunkClient {
  102. ////////////////////////////////////////////////////////////////////////////////
  103. constexpr int AllTargetNodesFailed = 700;
  104. constexpr int SendBlocksFailed = 701;
  105. constexpr int NoSuchSession = 702;
  106. constexpr int SessionAlreadyExists = 703;
  107. constexpr int ChunkAlreadyExists = 704;
  108. constexpr int WindowError = 705;
  109. constexpr int BlockContentMismatch = 706;
  110. constexpr int NoSuchBlock = 707;
  111. constexpr int NoSuchChunk = 708;
  112. constexpr int NoLocationAvailable = 710;
  113. constexpr int IOError = 711;
  114. constexpr int MasterCommunicationFailed = 712;
  115. constexpr int NoSuchChunkTree = 713;
  116. constexpr int MasterNotConnected = 714;
  117. constexpr int ChunkUnavailable = 716;
  118. constexpr int NoSuchChunkList = 717;
  119. constexpr int WriteThrottlingActive = 718;
  120. constexpr int NoSuchMedium = 719;
  121. constexpr int OptimisticLockFailure = 720;
  122. constexpr int InvalidBlockChecksum = 721;
  123. constexpr int BlockOutOfRange = 722;
  124. constexpr int ObjectNotReplicated = 723;
  125. constexpr int MissingExtension = 724;
  126. constexpr int BandwidthThrottlingFailed = 725;
  127. constexpr int ReaderTimeout = 726;
  128. constexpr int NoSuchChunkView = 727;
  129. ////////////////////////////////////////////////////////////////////////////////
  130. } // namespace NChunkClient
  131. // from ./client/election/public.h
  132. namespace NElection {
  133. ////////////////////////////////////////////////////////////////////////////////
  134. constexpr int InvalidState = 800;
  135. constexpr int InvalidLeader = 801;
  136. constexpr int InvalidEpoch = 802;
  137. ////////////////////////////////////////////////////////////////////////////////
  138. } // namespace NElection
  139. // from ./client/security_client/public.h
  140. namespace NSecurityClient {
  141. ////////////////////////////////////////////////////////////////////////////////
  142. constexpr int AuthenticationError = 900;
  143. constexpr int AuthorizationError = 901;
  144. constexpr int AccountLimitExceeded = 902;
  145. constexpr int UserBanned = 903;
  146. constexpr int RequestQueueSizeLimitExceeded = 904;
  147. constexpr int NoSuchAccount = 905;
  148. constexpr int SafeModeEnabled = 906;
  149. ////////////////////////////////////////////////////////////////////////////////
  150. } // namespace NSecurityClient
  151. // from ./client/object_client/public.h
  152. namespace NObjectClient {
  153. ////////////////////////////////////////////////////////////////////////////////
  154. constexpr int PrerequisiteCheckFailed = 1000;
  155. constexpr int CrossCellAdditionalPath = 1002;
  156. ////////////////////////////////////////////////////////////////////////////////
  157. } // namespace NObjectClient
  158. // from ./server/lib/exec_agent/public.h
  159. namespace NExecAgent {
  160. ////////////////////////////////////////////////////////////////////////////////
  161. constexpr int ConfigCreationFailed = 1100;
  162. constexpr int AbortByScheduler = 1101;
  163. constexpr int ResourceOverdraft = 1102;
  164. constexpr int WaitingJobTimeout = 1103;
  165. constexpr int SlotNotFound = 1104;
  166. constexpr int JobEnvironmentDisabled = 1105;
  167. constexpr int JobProxyConnectionFailed = 1106;
  168. constexpr int ArtifactCopyingFailed = 1107;
  169. constexpr int NodeDirectoryPreparationFailed = 1108;
  170. constexpr int SlotLocationDisabled = 1109;
  171. constexpr int QuotaSettingFailed = 1110;
  172. constexpr int RootVolumePreparationFailed = 1111;
  173. constexpr int NotEnoughDiskSpace = 1112;
  174. constexpr int ArtifactDownloadFailed = 1113;
  175. constexpr int JobProxyPreparationTimeout = 1114;
  176. constexpr int JobPreparationTimeout = 1115;
  177. constexpr int JobProxyFailed = 1120;
  178. ////////////////////////////////////////////////////////////////////////////////
  179. } // namespace NExecAgent
  180. // from ./ytlib/job_proxy/public.h
  181. namespace NJobProxy {
  182. ////////////////////////////////////////////////////////////////////////////////
  183. constexpr int MemoryLimitExceeded = 1200;
  184. constexpr int MemoryCheckFailed = 1201;
  185. constexpr int JobTimeLimitExceeded = 1202;
  186. constexpr int UnsupportedJobType = 1203;
  187. constexpr int JobNotPrepared = 1204;
  188. constexpr int UserJobFailed = 1205;
  189. ////////////////////////////////////////////////////////////////////////////////
  190. } // namespace NJobProxy
  191. // from ./server/node/data_node/public.h
  192. namespace NDataNode {
  193. ////////////////////////////////////////////////////////////////////////////////
  194. constexpr int LocalChunkReaderFailed = 1300;
  195. constexpr int LayerUnpackingFailed = 1301;
  196. ////////////////////////////////////////////////////////////////////////////////
  197. } // namespace NDataNode
  198. // from ./core/net/public.h
  199. namespace NNet {
  200. ////////////////////////////////////////////////////////////////////////////////
  201. constexpr int Aborted = 1500;
  202. constexpr int ResolveTimedOut = 1501;
  203. ////////////////////////////////////////////////////////////////////////////////
  204. } // namespace NNet
  205. // from ./client/node_tracker_client/public.h
  206. namespace NNodeTrackerClient {
  207. ////////////////////////////////////////////////////////////////////////////////
  208. constexpr int NoSuchNode = 1600;
  209. constexpr int InvalidState = 1601;
  210. constexpr int NoSuchNetwork = 1602;
  211. constexpr int NoSuchRack = 1603;
  212. constexpr int NoSuchDataCenter = 1604;
  213. ////////////////////////////////////////////////////////////////////////////////
  214. } // namespace NNodeTrackerClient
  215. // from ./client/tablet_client/public.h
  216. namespace NTabletClient {
  217. ////////////////////////////////////////////////////////////////////////////////
  218. constexpr int TransactionLockConflict = 1700;
  219. constexpr int NoSuchTablet = 1701;
  220. constexpr int TabletNotMounted = 1702;
  221. constexpr int AllWritesDisabled = 1703;
  222. constexpr int InvalidMountRevision = 1704;
  223. constexpr int TableReplicaAlreadyExists = 1705;
  224. constexpr int InvalidTabletState = 1706;
  225. ////////////////////////////////////////////////////////////////////////////////
  226. } // namespace NTabletClient
  227. // from ./server/lib/shell/public.h
  228. namespace NShell {
  229. ////////////////////////////////////////////////////////////////////////////////
  230. constexpr int ShellExited = 1800;
  231. constexpr int ShellManagerShutDown = 1801;
  232. ////////////////////////////////////////////////////////////////////////////////
  233. } // namespace NShell
  234. // from ./client/api/public.h
  235. namespace NApi {
  236. ////////////////////////////////////////////////////////////////////////////////
  237. constexpr int TooManyConcurrentRequests = 1900;
  238. constexpr int JobArchiveUnavailable = 1910;
  239. constexpr int RetriableArchiveError = 1911;
  240. constexpr int NoSuchOperation = 1915;
  241. ////////////////////////////////////////////////////////////////////////////////
  242. } // namespace NApi
  243. // from ./server/controller_agent/chunk_pools/public.h
  244. namespace NChunkPools {
  245. ////////////////////////////////////////////////////////////////////////////////
  246. constexpr int DataSliceLimitExceeded = 2000;
  247. constexpr int MaxDataWeightPerJobExceeded = 2001;
  248. constexpr int MaxPrimaryDataWeightPerJobExceeded = 2002;
  249. ////////////////////////////////////////////////////////////////////////////////
  250. } // namespace NChunkPools
  251. // from ./client/api/rpc_proxy/public.h
  252. namespace NApi {
  253. ////////////////////////////////////////////////////////////////////////////////
  254. constexpr int ProxyBanned = 2100;
  255. ////////////////////////////////////////////////////////////////////////////////
  256. } // namespace NApi
  257. // from ./ytlib/controller_agent/public.h
  258. namespace NControllerAgent {
  259. ////////////////////////////////////////////////////////////////////////////////
  260. constexpr int AgentCallFailed = 4400;
  261. constexpr int NoOnlineNodeToScheduleJob = 4410;
  262. constexpr int MaterializationFailed = 4415;
  263. ////////////////////////////////////////////////////////////////////////////////
  264. } // namespace NControllerAgent
  265. // from ./client/transaction_client/public.h
  266. namespace NTransactionClient {
  267. ////////////////////////////////////////////////////////////////////////////////
  268. constexpr int NoSuchTransaction = 11000;
  269. ////////////////////////////////////////////////////////////////////////////////
  270. } // namespace NTransactionClient
  271. // from ./server/lib/containers/public.h
  272. namespace NContainers {
  273. ////////////////////////////////////////////////////////////////////////////////
  274. constexpr int FailedToStartContainer = 13000;
  275. ////////////////////////////////////////////////////////////////////////////////
  276. } // namespace NContainers
  277. // from ./ytlib/job_prober_client/public.h
  278. namespace NJobProberClient {
  279. ////////////////////////////////////////////////////////////////////////////////
  280. constexpr int JobIsNotRunning = 17000;
  281. ////////////////////////////////////////////////////////////////////////////////
  282. } // namespace NJobProberClient
  283. // from ./ytlib/sequoia_client/public.h
  284. namespace NSequoiaClient {
  285. ////////////////////////////////////////////////////////////////////////////////
  286. constexpr int SequoiaRetriableError = 6002;
  287. ////////////////////////////////////////////////////////////////////////////////
  288. } // namespace NSequoiaClient
  289. } // namespace NClusterErrorCodes
  290. } // namespace NYT