-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
errInfo.go
633 lines (513 loc) · 24.7 KB
/
errInfo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
/*
* Tencent is pleased to support the open source community by making 蓝鲸 available.
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
package common
//CC error number defined in this file
//Errno name is composed of the following format CCErr[XXX]
const (
// the system code
// CCSystemBusy the system is busy
CCSystemBusy = -1
CCSuccess = 0
CCSuccessStr = "success"
// common error code 1199XXX
// CCErrCommJSONUnmarshalFailed JSON deserialization failed
CCErrCommJSONUnmarshalFailed = 1199000
// CCErrCommJSONMarshalFailed JSON serialization failed
CCErrCommJSONMarshalFailed = 1199001
// CCErrCommHTTPDoRequestFailed the HTTP Request failed
CCErrCommHTTPDoRequestFailed = 1199002
// CCErrCommHTTPInputInvalid the input parameter is invalid, and the parameter here refers to the URL or Query parameter
CCErrCommHTTPInputInvalid = 1199003
// CCErrCommHTTPReadBodyFailed unable to read HTTP request body data
CCErrCommHTTPReadBodyFailed = 1199004
// CCErrCommHTTPBodyEmpty HTTP request body data is not set
CCErrCommHTTPBodyEmpty = 1199005
// CCErrCommParamsInvalid parameter validation in the body is not paased
CCErrCommParamsInvalid = 1199006
// CCErrCommParamsNeedString the parameter must be of type string
CCErrCommParamsNeedString = 1199007
// CCErrCommParamsLostField the prameter not specified
CCErrCommParamsLostField = 1199008
// CCErrCommParamsNeedInt the parameter must be of tyep int
CCErrCommParamsNeedInt = 1199009
// CCErrCommParamsNeedSet the parameter unassigned
CCErrCommParamsNeedSet = 1199010
// CCErrCommParamsIsInvalid the parameter is invalid or nonexistent
CCErrCommParamsIsInvalid = 1199011
// CCErrCommUniqueCheckFailed the uniqueness validation fails
CCErrCommUniqueCheckFailed = 1199012
// CCErrCommParseDataFailed failed to read data from data field
CCErrCommParseDataFailed = 1199013
// CCErrCommDuplicateItem duplicate data
CCErrCommDuplicateItem = 1199014
// CCErrCommOverLimit data length exceeds limit
CCErrCommOverLimit = 1199015
// CCErrFieldRegValidFailed regular verification failed
CCErrFieldRegValidFailed = 1199016
// CCErrCommDBSelectFailed database query failed
CCErrCommDBSelectFailed = 1199017
// CCErrCommDBInsertFailed database cannot add data
CCErrCommDBInsertFailed = 1199018
//CCErrCommNotFound the goal does not exist
CCErrCommNotFound = 1199019
//CCErrCommDBUpdateFailed database cannot update data
CCErrCommDBUpdateFailed = 1199020
//CCErrCommDBDeleteFailed database cannot delete data
CCErrCommDBDeleteFailed = 1199021
//CCErrCommRelyOnServerAddressFailed dependent service did not start
CCErrCommRelyOnServerAddressFailed = 1199022
//CCErrCommExcelTemplateFailed unable to generate and download
CCErrCommExcelTemplateFailed = 1199023
// CCErrCommParamsNeedTimeZone the parameter must be time zone type
CCErrCommParamsNeedTimeZone = 1199024
// CCErrCommParamsNeedBool the parameter must be bool type
CCErrCommParamsNeedBool = 1199025
// CCErrCommConfMissItem missing configuration item
CCErrCommConfMissItem = 1199026
// CCErrCommNotAuthItem failed to get authorization information
CCErrCommNotAuthItem = 1199027
// CCErrCommNotAuthItem field valide failed
CCErrCommFieldNotValid = 1199028
//CCErrCommReplyDataFormatError Return data format error
CCErrCommReplyDataFormatError = 1199029
//CCErrCommReplyDataFormatError Return data format error
CCErrCommPostInputParseError = 1199030
// CCErrCommResourceInitFailed %s init failed
CCErrCommResourceInitFailed = 1199031
// CCErrCommParams should be string
CCErrCommParamsShouldBeString = 1199032
// CCErrCommSearchPropertyFailed get object property fields error
CCErrCommSearchPropertyFailed = 1199033
// CCErrCommParamsShouldBeEnum set enum
CCErrCommParamsShouldBeEnum = 1199034
// CCErrCommXXExceedLimit xx exceed limit number
CCErrCommXXExceedLimit = 1199035
CCErrProxyRequestFailed = 1199036
CCErrRewriteRequestUriFailed = 1199037
// apiserver 1100XXX
// toposerver 1101XXX
// CCErrTopoInstCreateFailed unable to create the instance
CCErrTopoInstCreateFailed = 1101000
// CCErrTopoInstDeleteFailed unable to delete the instance
CCErrTopoInstDeleteFailed = 1101001
// CCErrTopoInstUpdateFailed unable to update the instance
CCErrTopoInstUpdateFailed = 1101002
// CCErrTopoInstSelectFailed unable to search the instance
CCErrTopoInstSelectFailed = 1101003
// CCErrTopoModuleCreateFailed unable to create a module
CCErrTopoModuleCreateFailed = 1101004
// CCErrTopoModuleDeleteFailed unable to delete a module
CCErrTopoModuleDeleteFailed = 1101005
// CCErrTopoModuleUpdateFailed unable to update a module
CCErrTopoModuleUpdateFailed = 1101006
// CCErrTopoModuleSelectFailed unable to select a module
CCErrTopoModuleSelectFailed = 1101007
// CCErrTopoSetCreateFailed unable to create a set
CCErrTopoSetCreateFailed = 1101008
// CCErrTopoSetDeleteFailed unable to delete a set
CCErrTopoSetDeleteFailed = 1101009
// CCErrTopoSetUpdateFailed unable to update a set
CCErrTopoSetUpdateFailed = 1101010
// CCErrTopoSetSelectFailed unable to select a set
CCErrTopoSetSelectFailed = 1101011
// CCErrTopoInstHasHostChild include hosts
CCErrTopoInstHasHostChild = 1101012
// CCErrTopoObjectCreateFailed unable to create a object
CCErrTopoObjectCreateFailed = 1101013
// CCErrTopoObjectDeleteFailed unable to delete a object
CCErrTopoObjectDeleteFailed = 1101014
// CCErrTopoObjectUpdateFailed unable to update a object
CCErrTopoObjectUpdateFailed = 1101015
// CCErrTopoObjectSelectFailed unable to select a object
CCErrTopoObjectSelectFailed = 1101016
// CCErrTopoObjectAttributeCreateFailed unable to create a object attribute
CCErrTopoObjectAttributeCreateFailed = 1101017
// CCErrTopoObjectAttributeDeleteFailed unable to delete a object attribute
CCErrTopoObjectAttributeDeleteFailed = 1101018
// CCErrTopoObjectAttributeUpdateFailed unable to update a object attribute
CCErrTopoObjectAttributeUpdateFailed = 1101019
// CCErrTopoObjectAttributeSelectFailed unable to select a object attribute
CCErrTopoObjectAttributeSelectFailed = 1101020
// CCErrTopoObjectClassificationCreateFailed unable to create a object classification
CCErrTopoObjectClassificationCreateFailed = 1101021
// CCErrTopoObjectClassificationDeleteFailed unbale to delete a object classification
CCErrTopoObjectClassificationDeleteFailed = 1101022
// CCErrTopoObjectClassificationUpdateFailed unable to update a object classification
CCErrTopoObjectClassificationUpdateFailed = 1101023
// CCErrTopoObjectClassificationSelectFailed unable to select a object classification
CCErrTopoObjectClassificationSelectFailed = 1101024
// CCErrTopoObjectGroupCreateFailed unable to create object group
CCErrTopoObjectGroupCreateFailed = 1101025
// CCErrTopoObjectGroupDeleteFailed unable to delete a object group
CCErrTopoObjectGroupDeleteFailed = 1101026
// CCErrTopoObjectGroupUpdateFailed unable to update a object group
CCErrTopoObjectGroupUpdateFailed = 1101027
// CCErrTopoObjectGroupSelectFailed unable to select a object group
CCErrTopoObjectGroupSelectFailed = 1101028
// CCErrTopoObjectClassificationHasObject the object classification can't be deleted under clssification
CCErrTopoObjectClassificationHasObject = 1101029
// CCErrTopoHasHostCheckFailed cannot detect if host information is included
CCErrTopoHasHostCheckFailed = 1101030
// CCErrTopoHasHost include host
CCErrTopoHasHost = 1101030
// CCErrTopoGetCloudErrStrFaild get cloud error
CCErrTopoGetCloudErrStrFaild = 1101031
// CCErrTopoCloudNotFound cloud area not found
CCErrTopoCloudNotFound = 1101032
// CCErrTopoGetAppFaild search app err %s
CCErrTopoGetAppFaild = 1101033
// CCErrTopoGetModuleFailed search module err %s
CCErrTopoGetModuleFailed = 1101034
// CCErrTopoBizTopoOverLevel the mainline topo level over limit
CCErrTopoBizTopoLevelOverLimit = 1101035
// CCErrTopoInstHasBeenAssociation the mainline topo level over limit
CCErrTopoInstHasBeenAssociation = 1101036
// it is forbidden to delete , that has some insts
CCErrTopoObjectHasSomeInstsForbiddenToDelete = 1101037
// the associations %s->%s already exist
CCErrTopoAssociationAlreadyExist = 1101038
CCErrTopoAppDeleteFailed = 1001031
CCErrTopoAppUpdateFailed = 1001032
CCErrTopoAppSearchFailed = 1001033
CCErrTopoAppCreateFailed = 1001034
CCErrTopoForbiddenToDeleteModelFailed = 1001035
CCErrTopoMainlineCreatFailed = 1001037
CCErrTopoMainlineDeleteFailed = 1001038
CCErrTopoMainlineSelectFailed = 1001039
CCErrTopoTopoSelectFailed = 1001040
CCErrTopoUserGroupCreateFailed = 1001041
CCErrTopoUserGroupDeleteFailed = 1001042
CCErrTopoUserGroupUpdateFailed = 1001043
CCErrTopoUserGroupSelectFailed = 1001044
CCErrTopoUserGroupPrivilegeUpdateFailed = 1001045
CCErrTopoUserGroupPrivilegeSelectFailed = 1001046
CCErrTopoUserPrivilegeSelectFailed = 1001047
CCErrTopoRolePrivilegeCreateFailed = 1001048
CCErrTopoDeleteMainLineObjectAndInstNameRepeat = 1001049
CCErrHostNotAllowedToMutiBiz = 1001050
CCErrTopoGraphicsSearchFailed = 1001051
CCErrTopoGraphicsUpdateFailed = 1001052
CCErrTopoMulueIDNotfoundFailed = 1101080
CCErrTopoBkAppNotAllowedDelete = 1101081
// objectcontroller 1102XXX
// CCErrObjectPropertyGroupInsertFailed failed to save the property group
CCErrObjectPropertyGroupInsertFailed = 1102000
// CCErrObjectPropertyGroupDeleteFailed failed to delete the property group
CCErrObjectPropertyGroupDeleteFailed = 1102001
// CCErrObjectPropertyGroupSelectFailed failed to select the property group
CCErrObjectPropertyGroupSelectFailed = 1102002
// CCErrObjectPropertyGroupUpdateFailed failed to update the filed
CCErrObjectPropertyGroupUpdateFailed = 1102003
CCErrObjectCreateInstFailed = 1102004
CCErrObjectUpdateInstFailed = 1102005
CCErrObjectDeleteInstFailed = 1102006
CCErrObjectSelectInstFailed = 1102007
CCErrObjectSelectIdentifierFailed = 1102008
// CCErrObjectDBOpErrno failed to operation database
CCErrObjectDBOpErrno = 1102004
// event_server 1103XXX
// CCErrEventSubscribeInsertFailed failed to save the Subscribe
CCErrEventSubscribeInsertFailed = 1103000
// CCErrEventSubscribeDeleteFailed failed to delete the Subscribe
CCErrEventSubscribeDeleteFailed = 1103001
// CCErrEventSubscribeSelectFailed failed to select the Subscribe
CCErrEventSubscribeSelectFailed = 1103002
// CCErrEventSubscribeUpdateFailed failed to update the filed
CCErrEventSubscribeUpdateFailed = 1103003
// CCErrEventSubscribePingFailed failed to ping the target
CCErrEventSubscribePingFailed = 1103004
// CCErrEventSubscribePingFailed failed to telnet the target
CCErrEventSubscribeTelnetFailed = 1103005
// CCErrEventOperateSuccessBUtSentEventFailed failed to sent event
CCErrEventPushEventFailed = 1103006
// host 1104XXX
CCErrHostModuleRelationAddFailed = 1104000
// migrate 1105XXX
// CCErrCommMigrateFailed failed to migrate
CCErrCommMigrateFailed = 1105000
// hostcontroller 1106XXX
CCErrHostSelectInst = 1106000
CCErrHostCreateInst = 1106002
CCErrHostGetSnapshot = 1106003
CCErrHostTransferModule = 1106004
CCErrDelDefaultModuleHostConfig = 1106005
CCErrGetModule = 1106006
CCErrDelOriginHostModuelRelationship = 1106007
CCErrGetOriginHostModuelRelationship = 1106008
CCErrTransferHostFromPool = 1106009
CCErrAlreadyAssign = 1106010
CCErrNotBelongToIdleModule = 1106011
CCErrTransfer2ResourcePool = 1106012
CCErrCreateUserCustom = 1106013
CCErrHostFavouriteQueryFail = 1106014
CCErrHostFavouriteCreateFail = 1106015
CCErrHostFavouriteUpdateFail = 1106016
CCErrHostFavouriteDeleteFail = 1106017
CCErrHostFavouriteDupFail = 1106018
CCErrHostGetSnapshotChannelEmpty = 1106019
CCErrHostGetSnapshotChannelClose = 1106020
// proccontroller 1107XXX
CCErrProcDeleteProc2Module = 1107001
CCErrProcCreateProc2Module = 1107002
CCErrProcSelectProc2Module = 1107003
CCErrProcCreateProcConf = 1107004
CCErrProcDeleteProcConf = 1107005
CCErrProcGetProcConf = 1107006
CCErrProcUpdateProcConf = 1107007
CCErrProcCreateInstanceModel = 1107008
CCErrProcGetInstanceModel = 1107009
CCErrProcDeleteInstanceModel = 1107010
// procserver 1108XXX
CCErrProcSearchDetailFaile = 1108001
CCErrProcBindToMoudleFaile = 1108002
CCErrProcUnBindToMoudleFaile = 1108003
CCErrProcSelectBindToMoudleFaile = 1108004
CCErrProcUpdateProcessFaile = 1108005
CCErrProcSearchProcessFaile = 1108006
CCErrProcDeleteProcessFaile = 1108007
CCErrProcCreateProcessFaile = 1108008
CCErrProcFieldValidFaile = 1108009
CCErrProcGetByApplicationIDFail = 1108010
CCErrProcGetByIP = 1108011
CCErrProcOperateFaile = 1108012
CCErrProcBindWithModule = 1108013
// auditlog 1109XXX
CCErrAuditSaveLogFaile = 1109001
CCErrAuditTakeSnapshotFaile = 1109001
//hostserver
CCErrHostGetFail = 1110001
CCErrHostUpdateFail = 1110002
CCErrHostUpdateFieldFail = 1110003
CCErrHostCreateFail = 1110004
CCErrHostModifyFail = 1110005
CCErrHostDeleteFail = 1110006
CCErrHostFiledValdFail = 1110007
CCErrHostNotFound = 1110008
CCErrHostLength = 1110009
CCErrHostDetailFail = 1110010
CCErrHostSnap = 1110011
CCErrHostFeildValidFail = 1110012
CCErrHostFavCreateFail = 1110013
CCErrHostEmptyFavName = 1110014
CCErrHostFavUpdateFail = 1110015
CCErrHostFavDeleteFail = 1110016
CCErrHostFavGetFail = 1110017
CCErrHostHisCreateFail = 1110018
CCErrHostHisGetFail = 1110019
CCErrHostCustomCreateFail = 1110020
CCErrHostCustomGetFail = 1110021
CCErrHostCustomGetDefaultFail = 1110022
CCErrHostNotINAPP = 1110023
CCErrHostNotINAPPFail = 1110024
CCErrHostDELResourcePool = 1110025
CCErrHostAddRelationFail = 1110026
CCErrHostMoveResourcePoolFail = 1110027
CCErrHostEditRelationPoolFail = 1110028
CCErrAddHostToModule = 1110029
CCErrAddHostToModuleFailStr = 1110030
// hostserver api machinery new error code
CCErrAddUserCustomQueryFaild = 1110040
CCErrUpdateUserCustomQueryFaild = 1110041
CCErrDeleteUserCustomQueryFaild = 1110042
CCErrSearchUserCustomQueryFaild = 1110043
CCErrGetUserCustomQueryDetailFaild = 1110044
CCErrHostModuleConfigFaild = 1110045
CCErrHostGetSetFaild = 1110046
CCErrHostGetAPPFail = 1110047
CCErrHostAPPNotFoundFail = 1110048
CCErrHostGetModuleFail = 1110049
CCErrHostAgentStatusFail = 1110050
//web 1111XXX
CCErrWebFileNoFound = 1111001
CCErrWebFileSaveFail = 1111002
CCErrWebOpenFileFail = 1111003
CCErrWebFileContentEmpty = 1111004
CCErrWebFileContentFail = 1111005
CCErrWebGetHostFail = 1111006
CCErrWebCreateEXCELFail = 1111007
CCErrWebGetObjectFail = 1111008
CC_Err_Comm_HOST_CREATE_FAIL = 4300
CC_Err_Comm_HOST_CREATE_FAIL_STR = "create host fail"
CC_Err_Comm_HOST_MODIFY_FAIL = 4301
CC_Err_Comm_HOST_MODIFY_FAIL_STR = "modify host fail"
CC_Err_Comm_HOST_Field_VALID_FAIL = 4302
CC_Err_Comm_HOST_Field_VALID_FAIL_STR = "host field valid fail"
CC_Err_Comm_Host_Get_FAIL = 4303
CC_Err_Comm_Host_Get_FAIL_STR = "get host fail"
CC_Err_Comm_Host_Update_Field_ERR = 4304
CC_Err_Comm_Host_Update_Field_ERR_STR = "update host field err"
CC_Err_Comm_Host_Update_FAIL_ERR = 4305
CC_Err_Comm_Host_Update_FAIL_ERR_STR = "update host fail err"
CC_Err_Comm_Host_Not_Founded_ERR = 4306
CC_Err_Comm_Host_Not_Founded_ERR_STR = "find no host by condition"
CC_Err_Comm_Host_Length_ERR = 4307
CC_Err_Comm_Host_Length_ERR_STR = "not expected host length"
// api server v2 error 1170xxx, follow-up will be deleted
// CCErrApiServerV2AppNameLenErr app name must be 1-32 len
CCErrAPIServerV2APPNameLenErr = 1170001
// CCErrAPIServerV2DirectErr disply error
CCErrAPIServerV2DirectErr = 1170002
// CCErrAPIServerV2SetNameLenErr set name must be < 24 len
CCErrAPIServerV2SetNameLenErr = 1170003
// CCErrAPIServerV2MultiModuleIDErr single module id is int
CCErrAPIServerV2MultiModuleIDErr = 1170004
// CCErrAPIServerV2MultiSetIDErr single set id is int
CCErrAPIServerV2MultiSetIDErr = 1170005
// CCErrAPIServerV2OSTypeErr osType must be linux or windows
CCErrAPIServerV2OSTypeErr = 1170006
// CCErrAPIServerV2HostModuleContainDefaultModuleErr translate host to multiple module not contain default module
CCErrAPIServerV2HostModuleContainDefaultModuleErr = 1170007
/** TODO: 以下错误码需要改造 **/
// db
CC_ERR_Comm_DB_OP_ERRNO = 1000
CC_ERR_Comm_DB_OP_ERRNO_STR = "database return some exception"
CC_Err_Comm_DB_Insert_Failed = "insert data failed"
CC_Err_Comm_DB_Delete_Failed = "delete data failed"
CC_Err_Comm_DB_Update_Failed = "update data failed"
CC_Err_Comm_DB_Select_Failed = "select data failed"
//http
CC_Err_Comm_http_DO = 2000
CC_Err_Comm_http_DO_STR = "do http request failed!"
CC_Err_Comm_http_Input_Params = 2001
CC_Err_Comm_http_Input_Params_STR = "input params error!"
CC_Err_Comm_http_ReadReqBody = 2002
CC_Err_Comm_http_ReadReqBody_STR = "read http request body failed!"
//json
CC_ERR_Comm_JSON_DECODE = 3001
CC_ERR_Comm_JSON_DECODE_STR = "json decode failed!"
CC_ERR_Comm_JSON_ENCODE = 3002
CC_ERR_Comm_JSON_ENCODE_STR = "json encode failed!"
CC_ERR_Comm_JSON_GET = 3003
cc_ERR_Comm_JSON_GET_STR = "get data from json failed!"
//app
CC_Err_Comm_APP_ID_ERR = 4001
CC_Err_Comm_APP_ID_ERR_STR = "app id error"
CC_Err_Comm_APP_DEL_FAIL = 4002
CC_Err_Comm_APP_DEL_FAIL_STR = "delete app fail"
CC_Err_Comm_APP_Create_FAIL = 4003
CC_Err_Comm_APP_Create_FAIL_STR = "create app fail"
CC_Err_Comm_APP_Create_Field_ERR = 4004
CC_Err_Comm_APP_Create_Field_ERR_STR = "create app lack field"
CC_Err_Comm_APP_Create_Name_DUP = 4005
CC_Err_Comm_APP_Create_Name_DUP_STR = "duplicate application name"
CC_Err_Comm_APP_Update_FAIL = 4006
CC_Err_Comm_APP_Update_FAIL_STR = "update application fail"
CC_Err_Comm_APP_Field_VALID_FAIL = 4007
CC_Err_Comm_APP_Field_VALID_FAIL_STR = "app field valid fail"
CC_Err_Comm_APP_QUERY_FAIL = 4008
CC_Err_Comm_APP_QUERY_FAIL_STR = "query app fail"
CC_Err_Comm_APP_CHECK_HOST_FAIL = 4009
CC_Err_Comm_APP_CHECK_HOST_FAIL_STR = "failed to check host for app"
CC_Err_Comm_APP_HAS_HOST_FAIL = 4010
CC_Err_Comm_APP_HAS_HOST_FAIL_STR = "failed to delete app, because of it has some hosts"
//set
CC_Err_Comm_Set_QUERY_FAIL = 4100
CC_Err_Comm_Set_QUERY_FAIL_STR = "get set fail"
CC_Err_Comm_Set_CREATE_FAIL = 4101
CC_Err_Comm_Set_CREATE_FAIL_STR = "create set fail"
CC_Err_Comm_Set_Update_FAIL = 4102
CC_Err_Comm_Set_Update_FAIL_STR = "update set fail"
CC_Err_Comm_Set_Delete_FAIL = 4103
CC_Err_Comm_Set_Delete_FAIL_STR = "delete set fail"
//module
CC_Err_Comm_Module_QUERY_FAIL = 4200
CC_Err_Comm_Module_QUERY_FAIL_STR = "get module fail"
CC_Err_Comm_Module_Update_FAIL = 4201
CC_Err_Comm_Module_Update_FAIL_STR = "update module error"
CC_Err_Comm_Host_SNAPSHOT_GET_FAIL_ERR = 4306
CC_Err_Comm_Host_SNAPSHOT_GET_FAIL_ERR_STR = "get host snapshot fail err"
//process
CC_Err_Comm_PROC_Create_FAIL = 4400
CC_Err_Comm_PROC_Create_FAIL_STR = "create process fail"
CC_Err_Comm_PROC_Create_Field_ERR = 4401
CC_Err_Comm_PROC_Create_Field_ERR_STR = "create process lack field"
CC_Err_Comm_PROC_Field_VALID_FAIL = 4402
CC_Err_Comm_PROC_Field_VALID_FAIL_STR = "process field valid fail"
CC_Err_Comm_PROC_DELETE_FAIL = 4403
CC_Err_Comm_PROC_DELETE_FAIL_STR = "delete process fail"
CC_Err_Comm_PROC_SEARCH_FAIL = 4404
CC_Err_Comm_PROC_SEARCH_FAIL_STR = "search process fail"
CC_Err_Comm_CREATE_PROC_MODULE_FAIL = 4405
CC_Err_Comm_CREATE_PROC_MODULE_FAIL_STR = "create process module config fail"
CC_Err_Comm_GET_PROC_FAIL = 4406
CC_Err_Comm_GET_PROC_FAIL_STR = "get process fail"
CC_Err_Comm_GET_PROC_MODULE_FAIL = 4407
CC_Err_Comm_GET_PROC_MODULE_FAIL_STR = "get process module config fail"
CC_Err_Comm_BIND_PROC_MODULE_FAIL = 4408
CC_Err_Comm_BIND_PROC_MODULE_FAIL_STR = "bind process module config fail"
CC_Err_Comm_PROC_UPDATE_FAIL = 4409
CC_Err_Comm_PROC_UPDATE_FAIL_STR = "update process fail"
CC_Err_Comm_DELETE_PROC_MODULE_FAIL = 4410
CC_Err_Comm_DELETE_PROC_MODULE_FAIL_STR = "delete process fail"
//主机历史
CC_Err_Comm_HOST_HISTORY_Create_FAIL = 4400
CC_Err_Comm_HOST_HISTORY_Create_FAIL_STR = "create app fail"
//collect
CC_Err_Comm_HOST_FAVOURITE_CREATE_FAIL = 4401
CC_Err_Comm_HOST_FAVOURITE_CREATE_FAIL_STR = "create host favourite fail"
CC_Err_Comm_HOST_FAVOURITE_QUERY_FAIL = 4402
CC_Err_Comm_HOST_FAVOURITE_QUERY_FAIL_STR = "query host favourite fail"
CC_Err_Comm_HOST_FAVOURITE_EDIT_FAIL = 4403
CC_Err_Comm_HOST_FAVOURITE_EDIT_FAIL_STR = "modify host favourite fail"
//user custom
CC_Err_Comm_USER_CUSTOM_SAVE_FAIL = 5000
CC_Err_Comm_USER_CUSTOM_SAVE_FAIL_STR = "save user custom fail"
CC_Err_Comm_USER_CUSTOM_QUERY_FAIL = 5001
CC_Err_Comm_USER_CUSTOM_QUERY_FAIL_STR = "query user custom fail"
CC_Err_Comm_USER_CUSTOM_EDIT_FAIL = 5002
CC_Err_Comm_USER_CUSTOM_EDIT_FAIL_STR = "modify user custom fail"
//privilege
CC_Err_Comm_CREATE_ROLE_PRI_FAIL = 7000
CC_Err_Comm_CREATE_ROLE_PRI_FAIL_STR = "create role privilege error"
CC_Err_Comm_GET_ROLE_PRI_FAIL = 7001
CC_Err_Comm_GET_ROLE_PRI_FAIL_STR = "get role privilege error"
CC_Err_Comm_ROLE_PRI_EXIST = 7002
CC_Err_Comm_ROLE_PRI_EXIST_STR = "role privilege exist"
CC_Err_Comm_UPDATE_ROLE_PRI_FAIL = 7003
CC_Err_Comm_UPDATE_ROLE_PRI_FAIL_STR = "create role privilege error"
CC_Err_Comm_CREATE_USER_GROUP_FAIL = 7004
CC_Err_Comm_CREATE_USER_GROUP_FAIL_STR = "create user group error"
CC_Err_Comm_UPDATE_USER_GROUP_FAIL = 7005
CC_Err_Comm_UPDATE_USER_GROUP_FAIL_STR = "update user group error"
CC_Err_Comm_SEARCH_USER_GROUP_FAIL = 7006
CC_Err_Comm_SEARCH_USER_GROUP_FAIL_STR = "search user group error"
CC_Err_Comm_DELETE_USER_GROUP_FAIL = 7007
CC_Err_Comm_DELETE_USER_GROUP_FAIL_STR = "delete user group error"
CC_Err_Comm_INSERT_USER_GROUP_PRIVI_FAIL = 7008
CC_Err_Comm_INSERT_USER_GROUP_PRIVI_FAIL_STR = "insert user group privilege error"
CC_Err_Comm_UPDATE_USER_GROUP_PRIVI_FAIL = 7009
CC_Err_Comm_UPDATE_USER_GROUP_PRIVI_FAIL_STR = "update user group privilege error"
CC_Err_Comm_GET_USER_GROUP_PRIVI_FAIL = 7010
CC_Err_Comm_GET_USER_GROUP_PRIVI_FAIL_STR = "get user group privilege error"
CC_Err_Comm_DUP_GROUP_NAME_ERR = 7011
CC_Err_Comm_DUP_GROUP_NAME_ERR_STR = "duplicate group name"
CC_Err_Comm_DUP_GROUP_PRIVI_ERR = 7012
CC_Err_Comm_DUP_GROUP_PRIVI_ERR_STR = "duplicate group privilege"
CC_Err_Comm_GET_USER_PRIVI_ERR = 7013
CC_Err_Comm_GET_USER_PRIVI_ERR_STR = "get user privilege error"
// object
CC_Err_Comm_Object_Valid_Failed = 8000
Json_Marshal_ERR = 9000
Json_Marshal_ERR_STR = "json marshal error"
// property
CC_Err_Comm_GET_PROPERTY_PRI_FAIL = 10001
CC_Err_Comm_GET_PROPERTY_PRI_FAIL_STR = "get property error"
// plat
CC_Err_Comm_GET_PLAT_FAIL = 11001
CC_Err_Comm_GET_PLAT_FAIL_STR = "get plat error"
CC_Err_Comm_DELETE_PLAT_FAIL = 11002
CC_Err_Comm_DELETE_PLAT_FAIL_STR = "delete plat error"
CC_Err_Comm_CREATE_PLAT_FAIL = 11003
CC_Err_Comm_CREATE_PLAT_FAIL_STR = "create plat error"
CC_Err_Comm_HOST_IN_PLAT_FAIL = 11004
CC_Err_Comm_HOST_IN_PLAT_FAIL_STR = "plat has host data, can not delete plat"
)