C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
error_codes.h
1#pragma once
2
3//
4// generated by generate-error-codes.py
5//
6
7namespace NYT {
8namespace NClusterErrorCodes {
9
10
11
12// from ./core/misc/public.h
13
15
16 constexpr int OK = 0;
17 constexpr int Generic = 1;
18 constexpr int Canceled = 2;
19 constexpr int Timeout = 3;
20
22
23
24
25
26// from ./core/rpc/public.h
27namespace NRpc {
28
30
31 constexpr int TransportError = 100;
32 constexpr int ProtocolError = 101;
33 constexpr int NoSuchService = 102;
34 constexpr int NoSuchMethod = 103;
35 constexpr int Unavailable = 105;
36 constexpr int PoisonPill = 106;
37 constexpr int RequestQueueSizeLimitExceeded = 108;
38 constexpr int AuthenticationError = 109;
39 constexpr int InvalidCsrfToken = 110;
40 constexpr int InvalidCredentials = 111;
41 constexpr int StreamingNotSupported = 112;
42 constexpr int TransientFailure = 116;
43
44
46
47} // namespace NRpc
48
49
50
51// from ./core/bus/public.h
52namespace NBus {
53
55
56 constexpr int TransportError = 100;
57
59
60} // namespace NBus
61
62
63
64// from ./client/scheduler/public.h
65namespace NScheduler {
66
68
69 constexpr int NoSuchOperation = 200;
70 constexpr int InvalidOperationState = 201;
71 constexpr int TooManyOperations = 202;
72 constexpr int NoSuchJob = 203;
73 constexpr int OperationFailedOnJobRestart = 210;
74 constexpr int OperationFailedWithInconsistentLocking = 211;
75 constexpr int OperationControllerCrashed = 212;
76 constexpr int TestingError = 213;
77 constexpr int MasterDisconnected = 218;
78
80
81} // namespace NScheduler
82
83
84
85// from ./client/table_client/public.h
86namespace NTableClient {
87
89
90 constexpr int SortOrderViolation = 301;
91 constexpr int InvalidDoubleValue = 302;
92 constexpr int IncomparableType = 303;
93 constexpr int UnhashableType = 304;
94 // E.g. name table with more than #MaxColumnId columns (may come from legacy chunks).
95 constexpr int CorruptedNameTable = 305;
96 constexpr int UniqueKeyViolation = 306;
97 constexpr int SchemaViolation = 307;
98 constexpr int RowWeightLimitExceeded = 308;
99 constexpr int InvalidColumnFilter = 309;
100 constexpr int InvalidColumnRenaming = 310;
101 constexpr int IncompatibleKeyColumns = 311;
102 constexpr int ReaderDeadlineExpired = 312;
103 constexpr int TimestampOutOfRange = 313;
104
106
107} // namespace NTableClient
108
109
110
111// from ./client/cypress_client/public.h
112namespace NCypressClient {
113
115
116 constexpr int SameTransactionLockConflict = 400;
117 constexpr int DescendantTransactionLockConflict = 401;
118 constexpr int ConcurrentTransactionLockConflict = 402;
119 constexpr int PendingLockConflict = 403;
120 constexpr int LockDestroyed = 404;
121
123
124} // namespace NCypressClient
125
126
127
128// from ./core/ytree/public.h
129namespace NYTree {
130
132
133 constexpr int ResolveError = 500;
134 constexpr int AlreadyExists = 501;
135 constexpr int MaxChildCountViolation = 502;
136 constexpr int MaxStringLengthViolation = 503;
137 constexpr int MaxAttributeSizeViolation = 504;
138 constexpr int MaxKeyLengthViolation = 505;
139
141
142} // namespace NYTree
143
144
145
146// from ./client/hydra/public.h
147namespace NHydra {
148
150
151 constexpr int NoSuchSnapshot = 600;
152 constexpr int NoSuchChangelog = 601;
153 constexpr int InvalidEpoch = 602;
154 constexpr int InvalidVersion = 603;
155 constexpr int OutOfOrderMutations = 609;
156 constexpr int InvalidSnapshotVersion = 610;
157 constexpr int ReadOnlySnapshotBuilt = 611;
158 constexpr int ReadOnlySnapshotBuildFailed = 612;
159 constexpr int BrokenChangelog = 613;
160 constexpr int ChangelogIOError = 614;
161 constexpr int InvalidChangelogState = 615;
162 constexpr int ReadOnly = 616;
163 constexpr int RestartAfterRecovery = 617;
164 constexpr int ExpectedMutationHandlerException = 618;
165
167
168} // namespace NHydra
169
170
171
172// from ./client/chunk_client/public.h
173namespace NChunkClient {
174
176
177 constexpr int AllTargetNodesFailed = 700;
178 constexpr int SendBlocksFailed = 701;
179 constexpr int NoSuchSession = 702;
180 constexpr int SessionAlreadyExists = 703;
181 constexpr int ChunkAlreadyExists = 704;
182 constexpr int WindowError = 705;
183 constexpr int BlockContentMismatch = 706;
184 constexpr int NoSuchBlock = 707;
185 constexpr int NoSuchChunk = 708;
186 constexpr int NoLocationAvailable = 710;
187 constexpr int IOError = 711;
188 constexpr int MasterCommunicationFailed = 712;
189 constexpr int NoSuchChunkTree = 713;
190 constexpr int MasterNotConnected = 714;
191 constexpr int ChunkUnavailable = 716;
192 constexpr int NoSuchChunkList = 717;
193 constexpr int WriteThrottlingActive = 718;
194 constexpr int NoSuchMedium = 719;
195 constexpr int OptimisticLockFailure = 720;
196 constexpr int InvalidBlockChecksum = 721;
197 constexpr int BlockOutOfRange = 722;
198 constexpr int ObjectNotReplicated = 723;
199 constexpr int MissingExtension = 724;
200 constexpr int BandwidthThrottlingFailed = 725;
201 constexpr int ReaderTimeout = 726;
202 constexpr int NoSuchChunkView = 727;
203
205
206} // namespace NChunkClient
207
208
209
210// from ./client/election/public.h
211namespace NElection {
212
214
215 constexpr int InvalidState = 800;
216 constexpr int InvalidLeader = 801;
217 constexpr int InvalidEpoch = 802;
218
220
221} // namespace NElection
222
223
224
225// from ./client/security_client/public.h
226namespace NSecurityClient {
227
229
230 constexpr int AuthenticationError = 900;
231 constexpr int AuthorizationError = 901;
232 constexpr int AccountLimitExceeded = 902;
233 constexpr int UserBanned = 903;
234 constexpr int RequestQueueSizeLimitExceeded = 904;
235 constexpr int NoSuchAccount = 905;
236 constexpr int SafeModeEnabled = 906;
237
239
240} // namespace NSecurityClient
241
242
243
244// from ./client/object_client/public.h
245namespace NObjectClient {
246
248
249 constexpr int PrerequisiteCheckFailed = 1000;
250 constexpr int CrossCellAdditionalPath = 1002;
251
253
254} // namespace NObjectClient
255
256
257
258// from ./server/lib/exec_agent/public.h
259namespace NExecAgent {
260
262
263 constexpr int ConfigCreationFailed = 1100;
264 constexpr int AbortByScheduler = 1101;
265 constexpr int ResourceOverdraft = 1102;
266 constexpr int WaitingJobTimeout = 1103;
267 constexpr int SlotNotFound = 1104;
268 constexpr int JobEnvironmentDisabled = 1105;
269 constexpr int JobProxyConnectionFailed = 1106;
270 constexpr int ArtifactCopyingFailed = 1107;
271 constexpr int NodeDirectoryPreparationFailed = 1108;
272 constexpr int SlotLocationDisabled = 1109;
273 constexpr int QuotaSettingFailed = 1110;
274 constexpr int RootVolumePreparationFailed = 1111;
275 constexpr int NotEnoughDiskSpace = 1112;
276 constexpr int ArtifactDownloadFailed = 1113;
277 constexpr int JobProxyPreparationTimeout = 1114;
278 constexpr int JobPreparationTimeout = 1115;
279 constexpr int JobProxyFailed = 1120;
280
282
283} // namespace NExecAgent
284
285
286
287// from ./ytlib/job_proxy/public.h
288namespace NJobProxy {
289
291
292 constexpr int MemoryLimitExceeded = 1200;
293 constexpr int MemoryCheckFailed = 1201;
294 constexpr int JobTimeLimitExceeded = 1202;
295 constexpr int UnsupportedJobType = 1203;
296 constexpr int JobNotPrepared = 1204;
297 constexpr int UserJobFailed = 1205;
298
300
301} // namespace NJobProxy
302
303
304
305// from ./server/node/data_node/public.h
306namespace NDataNode {
307
309
310 constexpr int LocalChunkReaderFailed = 1300;
311 constexpr int LayerUnpackingFailed = 1301;
312
314
315} // namespace NDataNode
316
317
318
319// from ./core/net/public.h
320namespace NNet {
321
323
324 constexpr int Aborted = 1500;
325 constexpr int ResolveTimedOut = 1501;
326
328
329} // namespace NNet
330
331
332
333// from ./client/node_tracker_client/public.h
334namespace NNodeTrackerClient {
335
337
338 constexpr int NoSuchNode = 1600;
339 constexpr int InvalidState = 1601;
340 constexpr int NoSuchNetwork = 1602;
341 constexpr int NoSuchRack = 1603;
342 constexpr int NoSuchDataCenter = 1604;
343
345
346} // namespace NNodeTrackerClient
347
348
349
350// from ./client/tablet_client/public.h
351namespace NTabletClient {
352
354
355 constexpr int TransactionLockConflict = 1700;
356 constexpr int NoSuchTablet = 1701;
357 constexpr int TabletNotMounted = 1702;
358 constexpr int AllWritesDisabled = 1703;
359 constexpr int InvalidMountRevision = 1704;
360 constexpr int TableReplicaAlreadyExists = 1705;
361 constexpr int InvalidTabletState = 1706;
362
364
365} // namespace NTabletClient
366
367
368
369// from ./server/lib/shell/public.h
370namespace NShell {
371
373
374 constexpr int ShellExited = 1800;
375 constexpr int ShellManagerShutDown = 1801;
376
378
379} // namespace NShell
380
381
382
383// from ./client/api/public.h
384namespace NApi {
385
387
388 constexpr int TooManyConcurrentRequests = 1900;
389 constexpr int JobArchiveUnavailable = 1910;
390 constexpr int RetriableArchiveError = 1911;
391 constexpr int NoSuchOperation = 1915;
392
394
395} // namespace NApi
396
397
398
399// from ./server/controller_agent/chunk_pools/public.h
400namespace NChunkPools {
401
403
404 constexpr int DataSliceLimitExceeded = 2000;
405 constexpr int MaxDataWeightPerJobExceeded = 2001;
406 constexpr int MaxPrimaryDataWeightPerJobExceeded = 2002;
407 constexpr int MaxCompressedDataSizePerJobExceeded = 2003;
408
410
411} // namespace NChunkPools
412
413
414
415// from ./client/api/rpc_proxy/public.h
416namespace NApi {
417
419
420 constexpr int ProxyBanned = 2100;
421
423
424} // namespace NApi
425
426
427
428// from ./ytlib/controller_agent/public.h
429namespace NControllerAgent {
430
432
433 constexpr int AgentCallFailed = 4400;
434 constexpr int NoOnlineNodeToScheduleJob = 4410;
435 constexpr int MaterializationFailed = 4415;
436
438
439} // namespace NControllerAgent
440
441
442
443// from ./client/transaction_client/public.h
444namespace NTransactionClient {
445
447
448 constexpr int NoSuchTransaction = 11000;
449
451
452} // namespace NTransactionClient
453
454
455
456// from ./server/lib/containers/public.h
457namespace NContainers {
458
460
461 constexpr int FailedToStartContainer = 13000;
462
464
465} // namespace NContainers
466
467
468
469// from ./ytlib/job_prober_client/public.h
470namespace NJobProberClient {
471
473
474 constexpr int JobIsNotRunning = 17000;
475
477
478} // namespace NJobProberClient
479
480} // namespace NClusterErrorCodes
481} // namespace NYT
Main namespace of YT client.
Definition abortable_stream.h:7