-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.go
2237 lines (2228 loc) · 74.6 KB
/
errors.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
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//! TDengine error codes.
//! THIS IS AUTO GENERATED FROM TDENGINE <taoserror.h>, MAKE SURE YOU KNOW WHAT YOU ARE CHANING.
package taos
import "fmt"
type TaosError struct {
Code int32
ErrStr string
}
const (
SUCCESS int32 = 0 << iota
RPC_ACTION_IN_PROGRESS int32 = 0x0001
RPC_AUTH_REQUIRED int32 = 0x0002
RPC_AUTH_FAILURE int32 = 0x0003
RPC_REDIRECT int32 = 0x0004
RPC_NOT_READY int32 = 0x0005
RPC_ALREADY_PROCESSED int32 = 0x0006
RPC_LAST_SESSION_NOT_FINISHED int32 = 0x0007
RPC_MISMATCHED_LINK_ID int32 = 0x0008
RPC_TOO_SLOW int32 = 0x0009
RPC_MAX_SESSIONS int32 = 0x000A
RPC_NETWORK_UNAVAIL int32 = 0x000B
RPC_APP_ERROR int32 = 0x000C
RPC_UNEXPECTED_RESPONSE int32 = 0x000D
RPC_INVALID_VALUE int32 = 0x000E
RPC_INVALID_TRAN_ID int32 = 0x000F
RPC_INVALID_SESSION_ID int32 = 0x0010
RPC_INVALID_MSG_TYPE int32 = 0x0011
RPC_INVALID_RESPONSE_TYPE int32 = 0x0012
RPC_INVALID_TIME_STAMP int32 = 0x0013
APP_NOT_READY int32 = 0x0014
RPC_FQDN_ERROR int32 = 0x0015
RPC_INVALID_VERSION int32 = 0x0016
COM_OPS_NOT_SUPPORT int32 = 0x0100
COM_MEMORY_CORRUPTED int32 = 0x0101
COM_OUT_OF_MEMORY int32 = 0x0102
COM_INVALID_CFG_MSG int32 = 0x0103
COM_FILE_CORRUPTED int32 = 0x0104
REF_NO_MEMORY int32 = 0x0105
REF_FULL int32 = 0x0106
REF_ID_REMOVED int32 = 0x0107
REF_INVALID_ID int32 = 0x0108
REF_ALREADY_EXIST int32 = 0x0109
REF_NOT_EXIST int32 = 0x010A
TSC_INVALID_OPERATION int32 = 0x0200
TSC_INVALID_QHANDLE int32 = 0x0201
TSC_INVALID_TIME_STAMP int32 = 0x0202
TSC_INVALID_VALUE int32 = 0x0203
TSC_INVALID_VERSION int32 = 0x0204
TSC_INVALID_IE int32 = 0x0205
TSC_INVALID_FQDN int32 = 0x0206
TSC_INVALID_USER_LENGTH int32 = 0x0207
TSC_INVALID_PASS_LENGTH int32 = 0x0208
TSC_INVALID_DB_LENGTH int32 = 0x0209
TSC_INVALID_TABLE_ID_LENGTH int32 = 0x020A
TSC_INVALID_CONNECTION int32 = 0x020B
TSC_OUT_OF_MEMORY int32 = 0x020C
TSC_NO_DISKSPACE int32 = 0x020D
TSC_QUERY_CACHE_ERASED int32 = 0x020E
TSC_QUERY_CANCELLED int32 = 0x020F
TSC_SORTED_RES_TOO_MANY int32 = 0x0210
TSC_APP_ERROR int32 = 0x0211
TSC_ACTION_IN_PROGRESS int32 = 0x0212
TSC_DISCONNECTED int32 = 0x0213
TSC_NO_WRITE_AUTH int32 = 0x0214
TSC_CONN_KILLED int32 = 0x0215
TSC_SQL_SYNTAX_ERROR int32 = 0x0216
TSC_DB_NOT_SELECTED int32 = 0x0217
TSC_INVALID_TABLE_NAME int32 = 0x0218
TSC_EXCEED_SQL_LIMIT int32 = 0x0219
TSC_FILE_EMPTY int32 = 0x021A
TSC_LINE_SYNTAX_ERROR int32 = 0x021B
TSC_NO_META_CACHED int32 = 0x021C
MND_MSG_NOT_PROCESSED int32 = 0x0300
MND_ACTION_IN_PROGRESS int32 = 0x0301
MND_ACTION_NEED_REPROCESSED int32 = 0x0302
MND_NO_RIGHTS int32 = 0x0303
MND_APP_ERROR int32 = 0x0304
MND_INVALID_CONNECTION int32 = 0x0305
MND_INVALID_MSG_VERSION int32 = 0x0306
MND_INVALID_MSG_LEN int32 = 0x0307
MND_INVALID_MSG_TYPE int32 = 0x0308
MND_TOO_MANY_SHELL_CONNS int32 = 0x0309
MND_OUT_OF_MEMORY int32 = 0x030A
MND_INVALID_SHOWOBJ int32 = 0x030B
MND_INVALID_QUERY_ID int32 = 0x030C
MND_INVALID_STREAM_ID int32 = 0x030D
MND_INVALID_CONN_ID int32 = 0x030E
MND_MNODE_IS_RUNNING int32 = 0x0310
MND_FAILED_TO_CONFIG_SYNC int32 = 0x0311
MND_FAILED_TO_START_SYNC int32 = 0x0312
MND_FAILED_TO_CREATE_DIR int32 = 0x0313
MND_FAILED_TO_INIT_STEP int32 = 0x0314
MND_SDB_OBJ_ALREADY_THERE int32 = 0x0320
MND_SDB_ERROR int32 = 0x0321
MND_SDB_INVALID_TABLE_TYPE int32 = 0x0322
MND_SDB_OBJ_NOT_THERE int32 = 0x0323
MND_SDB_INVAID_META_ROW int32 = 0x0324
MND_SDB_INVAID_KEY_TYPE int32 = 0x0325
MND_DNODE_ALREADY_EXIST int32 = 0x0330
MND_DNODE_NOT_EXIST int32 = 0x0331
MND_VGROUP_NOT_EXIST int32 = 0x0332
MND_NO_REMOVE_MASTER int32 = 0x0333
MND_NO_ENOUGH_DNODES int32 = 0x0334
MND_CLUSTER_CFG_INCONSISTENT int32 = 0x0335
MND_INVALID_DNODE_CFG_OPTION int32 = 0x0336
MND_BALANCE_ENABLED int32 = 0x0337
MND_VGROUP_NOT_IN_DNODE int32 = 0x0338
MND_VGROUP_ALREADY_IN_DNODE int32 = 0x0339
MND_DNODE_NOT_FREE int32 = 0x033A
MND_INVALID_CLUSTER_ID int32 = 0x033B
MND_NOT_READY int32 = 0x033C
MND_DNODE_ID_NOT_CONFIGURED int32 = 0x033D
MND_DNODE_EP_NOT_CONFIGURED int32 = 0x033E
MND_ACCT_ALREADY_EXIST int32 = 0x0340
MND_INVALID_ACCT int32 = 0x0341
MND_INVALID_ACCT_OPTION int32 = 0x0342
MND_ACCT_EXPIRED int32 = 0x0343
MND_USER_ALREADY_EXIST int32 = 0x0350
MND_INVALID_USER int32 = 0x0351
MND_INVALID_USER_FORMAT int32 = 0x0352
MND_INVALID_PASS_FORMAT int32 = 0x0353
MND_NO_USER_FROM_CONN int32 = 0x0354
MND_TOO_MANY_USERS int32 = 0x0355
MND_TABLE_ALREADY_EXIST int32 = 0x0360
MND_INVALID_TABLE_ID int32 = 0x0361
MND_INVALID_TABLE_NAME int32 = 0x0362
MND_INVALID_TABLE_TYPE int32 = 0x0363
MND_TOO_MANY_TAGS int32 = 0x0364
MND_TOO_MANY_COLUMNS int32 = 0x0365
MND_TOO_MANY_TIMESERIES int32 = 0x0366
MND_NOT_SUPER_TABLE int32 = 0x0367
MND_COL_NAME_TOO_LONG int32 = 0x0368
MND_TAG_ALREAY_EXIST int32 = 0x0369
MND_TAG_NOT_EXIST int32 = 0x036A
MND_FIELD_ALREAY_EXIST int32 = 0x036B
MND_FIELD_NOT_EXIST int32 = 0x036C
MND_INVALID_STABLE_NAME int32 = 0x036D
MND_INVALID_CREATE_TABLE_MSG int32 = 0x036E
MND_EXCEED_MAX_ROW_BYTES int32 = 0x036F
MND_INVALID_FUNC_NAME int32 = 0x0370
MND_INVALID_FUNC_LEN int32 = 0x0371
MND_INVALID_FUNC_CODE int32 = 0x0372
MND_FUNC_ALREADY_EXIST int32 = 0x0373
MND_INVALID_FUNC int32 = 0x0374
MND_INVALID_FUNC_BUFSIZE int32 = 0x0375
MND_DB_NOT_SELECTED int32 = 0x0380
MND_DB_ALREADY_EXIST int32 = 0x0381
MND_INVALID_DB_OPTION int32 = 0x0382
MND_INVALID_DB int32 = 0x0383
MND_MONITOR_DB_FORBIDDEN int32 = 0x0384
MND_TOO_MANY_DATABASES int32 = 0x0385
MND_DB_IN_DROPPING int32 = 0x0386
MND_VGROUP_NOT_READY int32 = 0x0387
MND_INVALID_DB_OPTION_DAYS int32 = 0x0390
MND_INVALID_DB_OPTION_KEEP int32 = 0x0391
MND_INVALID_TOPIC int32 = 0x0392
MND_INVALID_TOPIC_OPTION int32 = 0x0393
MND_INVALID_TOPIC_PARTITONS int32 = 0x0394
MND_TOPIC_ALREADY_EXIST int32 = 0x0395
DND_MSG_NOT_PROCESSED int32 = 0x0400
DND_OUT_OF_MEMORY int32 = 0x0401
DND_NO_WRITE_ACCESS int32 = 0x0402
DND_INVALID_MSG_LEN int32 = 0x0403
DND_ACTION_IN_PROGRESS int32 = 0x0404
DND_TOO_MANY_VNODES int32 = 0x0405
VND_ACTION_IN_PROGRESS int32 = 0x0500
VND_MSG_NOT_PROCESSED int32 = 0x0501
VND_ACTION_NEED_REPROCESSED int32 = 0x0502
VND_INVALID_VGROUP_ID int32 = 0x0503
VND_INIT_FAILED int32 = 0x0504
VND_NO_DISKSPACE int32 = 0x0505
VND_NO_DISK_PERMISSIONS int32 = 0x0506
VND_NO_SUCH_FILE_OR_DIR int32 = 0x0507
VND_OUT_OF_MEMORY int32 = 0x0508
VND_APP_ERROR int32 = 0x0509
VND_INVALID_VRESION_FILE int32 = 0x050A
VND_IS_FULL int32 = 0x050B
VND_IS_FLOWCTRL int32 = 0x050C
VND_IS_DROPPING int32 = 0x050D
VND_IS_BALANCING int32 = 0x050E
VND_IS_CLOSING int32 = 0x0510
VND_NOT_SYNCED int32 = 0x0511
VND_NO_WRITE_AUTH int32 = 0x0512
VND_IS_SYNCING int32 = 0x0513
VND_INVALID_TSDB_STATE int32 = 0x0514
TDB_INVALID_TABLE_ID int32 = 0x0600
TDB_INVALID_TABLE_TYPE int32 = 0x0601
TDB_IVD_TB_SCHEMA_VERSION int32 = 0x0602
TDB_TABLE_ALREADY_EXIST int32 = 0x0603
TDB_INVALID_CONFIG int32 = 0x0604
TDB_INIT_FAILED int32 = 0x0605
TDB_NO_DISKSPACE int32 = 0x0606
TDB_NO_DISK_PERMISSIONS int32 = 0x0607
TDB_FILE_CORRUPTED int32 = 0x0608
TDB_OUT_OF_MEMORY int32 = 0x0609
TDB_TAG_VER_OUT_OF_DATE int32 = 0x060A
TDB_TIMESTAMP_OUT_OF_RANGE int32 = 0x060B
TDB_SUBMIT_MSG_MSSED_UP int32 = 0x060C
TDB_INVALID_ACTION int32 = 0x060D
TDB_INVALID_CREATE_TB_MSG int32 = 0x060E
TDB_NO_TABLE_DATA_IN_MEM int32 = 0x060F
TDB_FILE_ALREADY_EXISTS int32 = 0x0610
TDB_TABLE_RECONFIGURE int32 = 0x0611
TDB_IVD_CREATE_TABLE_INFO int32 = 0x0612
TDB_NO_AVAIL_DISK int32 = 0x0613
TDB_MESSED_MSG int32 = 0x0614
TDB_IVLD_TAG_VAL int32 = 0x0615
TDB_NO_CACHE_LAST_ROW int32 = 0x0616
QRY_INVALID_QHANDLE int32 = 0x0700
QRY_INVALID_MSG int32 = 0x0701
QRY_NO_DISKSPACE int32 = 0x0702
QRY_OUT_OF_MEMORY int32 = 0x0703
QRY_APP_ERROR int32 = 0x0704
QRY_DUP_JOIN_KEY int32 = 0x0705
QRY_EXCEED_TAGS_LIMIT int32 = 0x0706
QRY_NOT_READY int32 = 0x0707
QRY_HAS_RSP int32 = 0x0708
QRY_IN_EXEC int32 = 0x0709
QRY_TOO_MANY_TIMEWINDOW int32 = 0x070A
QRY_NOT_ENOUGH_BUFFER int32 = 0x070B
QRY_INCONSISTAN int32 = 0x070C
QRY_SYS_ERROR int32 = 0x070D
GRANT_EXPIRED int32 = 0x0800
GRANT_DNODE_LIMITED int32 = 0x0801
GRANT_ACCT_LIMITED int32 = 0x0802
GRANT_TIMESERIES_LIMITED int32 = 0x0803
GRANT_DB_LIMITED int32 = 0x0804
GRANT_USER_LIMITED int32 = 0x0805
GRANT_CONN_LIMITED int32 = 0x0806
GRANT_STREAM_LIMITED int32 = 0x0807
GRANT_SPEED_LIMITED int32 = 0x0808
GRANT_STORAGE_LIMITED int32 = 0x0809
GRANT_QUERYTIME_LIMITED int32 = 0x080A
GRANT_CPU_LIMITED int32 = 0x080B
SYN_INVALID_CONFIG int32 = 0x0900
SYN_NOT_ENABLED int32 = 0x0901
SYN_INVALID_VERSION int32 = 0x0902
SYN_CONFIRM_EXPIRED int32 = 0x0903
SYN_TOO_MANY_FWDINFO int32 = 0x0904
SYN_MISMATCHED_PROTOCOL int32 = 0x0905
SYN_MISMATCHED_CLUSTERID int32 = 0x0906
SYN_MISMATCHED_SIGNATURE int32 = 0x0907
SYN_INVALID_CHECKSUM int32 = 0x0908
SYN_INVALID_MSGLEN int32 = 0x0909
SYN_INVALID_MSGTYPE int32 = 0x090A
WAL_APP_ERROR int32 = 0x1000
WAL_FILE_CORRUPTED int32 = 0x1001
WAL_SIZE_LIMIT int32 = 0x1002
HTTP_SERVER_OFFLINE int32 = 0x1100
HTTP_UNSUPPORT_URL int32 = 0x1101
HTTP_INVALID_URL int32 = 0x1102
HTTP_NO_ENOUGH_MEMORY int32 = 0x1103
HTTP_REQUSET_TOO_BIG int32 = 0x1104
HTTP_NO_AUTH_INFO int32 = 0x1105
HTTP_NO_MSG_INPUT int32 = 0x1106
HTTP_NO_SQL_INPUT int32 = 0x1107
HTTP_NO_EXEC_USEDB int32 = 0x1108
HTTP_SESSION_FULL int32 = 0x1109
HTTP_GEN_TAOSD_TOKEN_ERR int32 = 0x110A
HTTP_INVALID_MULTI_REQUEST int32 = 0x110B
HTTP_CREATE_GZIP_FAILED int32 = 0x110C
HTTP_FINISH_GZIP_FAILED int32 = 0x110D
HTTP_LOGIN_FAILED int32 = 0x110E
HTTP_INVALID_VERSION int32 = 0x1120
HTTP_INVALID_CONTENT_LENGTH int32 = 0x1121
HTTP_INVALID_AUTH_TYPE int32 = 0x1122
HTTP_INVALID_AUTH_FORMAT int32 = 0x1123
HTTP_INVALID_BASIC_AUTH int32 = 0x1124
HTTP_INVALID_TAOSD_AUTH int32 = 0x1125
HTTP_PARSE_METHOD_FAILED int32 = 0x1126
HTTP_PARSE_TARGET_FAILED int32 = 0x1127
HTTP_PARSE_VERSION_FAILED int32 = 0x1128
HTTP_PARSE_SP_FAILED int32 = 0x1129
HTTP_PARSE_STATUS_FAILED int32 = 0x112A
HTTP_PARSE_PHRASE_FAILED int32 = 0x112B
HTTP_PARSE_CRLF_FAILED int32 = 0x112C
HTTP_PARSE_HEADER_FAILED int32 = 0x112D
HTTP_PARSE_HEADER_KEY_FAILED int32 = 0x112E
HTTP_PARSE_HEADER_VAL_FAILED int32 = 0x112F
HTTP_PARSE_CHUNK_SIZE_FAILED int32 = 0x1130
HTTP_PARSE_CHUNK_FAILED int32 = 0x1131
HTTP_PARSE_END_FAILED int32 = 0x1132
HTTP_PARSE_INVALID_STATE int32 = 0x1134
HTTP_PARSE_ERROR_STATE int32 = 0x1135
HTTP_GC_QUERY_NULL int32 = 0x1150
HTTP_GC_QUERY_SIZE int32 = 0x1151
HTTP_GC_REQ_PARSE_ERROR int32 = 0x1152
HTTP_TG_DB_NOT_INPUT int32 = 0x1160
HTTP_TG_DB_TOO_LONG int32 = 0x1161
HTTP_TG_INVALID_JSON int32 = 0x1162
HTTP_TG_METRICS_NULL int32 = 0x1163
HTTP_TG_METRICS_SIZE int32 = 0x1164
HTTP_TG_METRIC_NULL int32 = 0x1165
HTTP_TG_METRIC_TYPE int32 = 0x1166
HTTP_TG_METRIC_NAME_NULL int32 = 0x1167
HTTP_TG_METRIC_NAME_LONG int32 = 0x1168
HTTP_TG_TIMESTAMP_NULL int32 = 0x1169
HTTP_TG_TIMESTAMP_TYPE int32 = 0x116A
HTTP_TG_TIMESTAMP_VAL_NULL int32 = 0x116B
HTTP_TG_TAGS_NULL int32 = 0x116C
HTTP_TG_TAGS_SIZE_0 int32 = 0x116D
HTTP_TG_TAGS_SIZE_LONG int32 = 0x116E
HTTP_TG_TAG_NULL int32 = 0x116F
HTTP_TG_TAG_NAME_NULL int32 = 0x1170
HTTP_TG_TAG_NAME_SIZE int32 = 0x1171
HTTP_TG_TAG_VALUE_TYPE int32 = 0x1172
HTTP_TG_TAG_VALUE_NULL int32 = 0x1173
HTTP_TG_TABLE_NULL int32 = 0x1174
HTTP_TG_TABLE_SIZE int32 = 0x1175
HTTP_TG_FIELDS_NULL int32 = 0x1176
HTTP_TG_FIELDS_SIZE_0 int32 = 0x1177
HTTP_TG_FIELDS_SIZE_LONG int32 = 0x1178
HTTP_TG_FIELD_NULL int32 = 0x1179
HTTP_TG_FIELD_NAME_NULL int32 = 0x117A
HTTP_TG_FIELD_NAME_SIZE int32 = 0x117B
HTTP_TG_FIELD_VALUE_TYPE int32 = 0x117C
HTTP_TG_FIELD_VALUE_NULL int32 = 0x117D
HTTP_TG_HOST_NOT_STRING int32 = 0x117E
HTTP_TG_STABLE_NOT_EXIST int32 = 0x117F
HTTP_OP_DB_NOT_INPUT int32 = 0x1190
HTTP_OP_DB_TOO_LONG int32 = 0x1191
HTTP_OP_INVALID_JSON int32 = 0x1192
HTTP_OP_METRICS_NULL int32 = 0x1193
HTTP_OP_METRICS_SIZE int32 = 0x1194
HTTP_OP_METRIC_NULL int32 = 0x1195
HTTP_OP_METRIC_TYPE int32 = 0x1196
HTTP_OP_METRIC_NAME_NULL int32 = 0x1197
HTTP_OP_METRIC_NAME_LONG int32 = 0x1198
HTTP_OP_TIMESTAMP_NULL int32 = 0x1199
HTTP_OP_TIMESTAMP_TYPE int32 = 0x119A
HTTP_OP_TIMESTAMP_VAL_NULL int32 = 0x119B
HTTP_OP_TAGS_NULL int32 = 0x119C
HTTP_OP_TAGS_SIZE_0 int32 = 0x119D
HTTP_OP_TAGS_SIZE_LONG int32 = 0x119E
HTTP_OP_TAG_NULL int32 = 0x119F
HTTP_OP_TAG_NAME_NULL int32 = 0x11A0
HTTP_OP_TAG_NAME_SIZE int32 = 0x11A1
HTTP_OP_TAG_VALUE_TYPE int32 = 0x11A2
HTTP_OP_TAG_VALUE_NULL int32 = 0x11A3
HTTP_OP_TAG_VALUE_TOO_LONG int32 = 0x11A4
HTTP_OP_VALUE_NULL int32 = 0x11A5
HTTP_OP_VALUE_TYPE int32 = 0x11A6
HTTP_REQUEST_JSON_ERROR int32 = 0x1F00
ODBC_OOM int32 = 0x2100
ODBC_CONV_CHAR_NOT_NUM int32 = 0x2101
ODBC_CONV_UNDEF int32 = 0x2102
ODBC_CONV_TRUNC_FRAC int32 = 0x2103
ODBC_CONV_TRUNC int32 = 0x2104
ODBC_CONV_NOT_SUPPORT int32 = 0x2105
ODBC_CONV_OOR int32 = 0x2106
ODBC_OUT_OF_RANGE int32 = 0x2107
ODBC_NOT_SUPPORT int32 = 0x2108
ODBC_INVALID_HANDLE int32 = 0x2109
ODBC_NO_RESULT int32 = 0x210a
ODBC_NO_FIELDS int32 = 0x210b
ODBC_INVALID_CURSOR int32 = 0x210c
ODBC_STATEMENT_NOT_READY int32 = 0x210d
ODBC_CONNECTION_BUSY int32 = 0x210e
ODBC_BAD_CONNSTR int32 = 0x210f
ODBC_BAD_ARG int32 = 0x2110
ODBC_CONV_NOT_VALID_TS int32 = 0x2111
ODBC_CONV_SRC_TOO_LARGE int32 = 0x2112
ODBC_CONV_SRC_BAD_SEQ int32 = 0x2113
ODBC_CONV_SRC_INCOMPLETE int32 = 0x2114
ODBC_CONV_SRC_GENERAL int32 = 0x2115
FS_OUT_OF_MEMORY int32 = 0x2200
FS_INVLD_CFG int32 = 0x2201
FS_TOO_MANY_MOUNT int32 = 0x2202
FS_DUP_PRIMARY int32 = 0x2203
FS_NO_PRIMARY_DISK int32 = 0x2204
FS_NO_MOUNT_AT_TIER int32 = 0x2205
FS_FILE_ALREADY_EXISTS int32 = 0x2206
FS_INVLD_LEVEL int32 = 0x2207
FS_NO_VALID_DISK int32 = 0x2208
MON_CONNECTION_INVALID int32 = 0x2300
UNKNOWN int32 = 0xffff
)
func (e *TaosError) Error() string {
if e.Code != UNKNOWN {
return fmt.Sprintf("[0x%x] %s", e.Code, e.ErrStr)
}
return e.ErrStr
}
func (e *TaosError) IsError(r *TaosError) bool {
return e.Code == r.Code
}
var (
ErrRpcActionInProgress = &TaosError{
Code: RPC_ACTION_IN_PROGRESS,
ErrStr: "Action in progress",
}
ErrRpcAuthRequired = &TaosError{
Code: RPC_AUTH_REQUIRED,
ErrStr: "Authentication required",
}
ErrRpcAuthFailure = &TaosError{
Code: RPC_AUTH_FAILURE,
ErrStr: "Authentication failure",
}
ErrRpcRedirect = &TaosError{
Code: RPC_REDIRECT,
ErrStr: "Redirect",
}
ErrRpcNotReady = &TaosError{
Code: RPC_NOT_READY,
ErrStr: "System not ready",
}
ErrRpcAlreadyProcessed = &TaosError{
Code: RPC_ALREADY_PROCESSED,
ErrStr: "Message already processed",
}
ErrRpcLastSessionNotFinished = &TaosError{
Code: RPC_LAST_SESSION_NOT_FINISHED,
ErrStr: "Last session not finished",
}
ErrRpcMismatchedLinkId = &TaosError{
Code: RPC_MISMATCHED_LINK_ID,
ErrStr: "Mismatched meter id",
}
ErrRpcTooSlow = &TaosError{
Code: RPC_TOO_SLOW,
ErrStr: "Processing of request timed out",
}
ErrRpcMaxSessions = &TaosError{
Code: RPC_MAX_SESSIONS,
ErrStr: "Number of sessions reached limit",
}
ErrRpcNetworkUnavail = &TaosError{
Code: RPC_NETWORK_UNAVAIL,
ErrStr: "Unable to establish connection",
}
ErrRpcAppError = &TaosError{
Code: RPC_APP_ERROR,
ErrStr: "Unexpected generic error in RPC",
}
ErrRpcUnexpectedResponse = &TaosError{
Code: RPC_UNEXPECTED_RESPONSE,
ErrStr: "Unexpected response",
}
ErrRpcInvalidValue = &TaosError{
Code: RPC_INVALID_VALUE,
ErrStr: "Invalid value",
}
ErrRpcInvalidTranId = &TaosError{
Code: RPC_INVALID_TRAN_ID,
ErrStr: "Invalid transaction id",
}
ErrRpcInvalidSessionId = &TaosError{
Code: RPC_INVALID_SESSION_ID,
ErrStr: "Invalid session id",
}
ErrRpcInvalidMsgType = &TaosError{
Code: RPC_INVALID_MSG_TYPE,
ErrStr: "Invalid message type",
}
ErrRpcInvalidResponseType = &TaosError{
Code: RPC_INVALID_RESPONSE_TYPE,
ErrStr: "Invalid response type",
}
ErrRpcInvalidTimeStamp = &TaosError{
Code: RPC_INVALID_TIME_STAMP,
ErrStr: "Client and server's time is not synchronized",
}
ErrAppNotReady = &TaosError{
Code: APP_NOT_READY,
ErrStr: "Database not ready",
}
ErrRpcFqdnError = &TaosError{
Code: RPC_FQDN_ERROR,
ErrStr: "Unable to resolve FQDN",
}
ErrRpcInvalidVersion = &TaosError{
Code: RPC_INVALID_VERSION,
ErrStr: "Invalid app version",
}
ErrComOpsNotSupport = &TaosError{
Code: COM_OPS_NOT_SUPPORT,
ErrStr: "Operation not supported",
}
ErrComMemoryCorrupted = &TaosError{
Code: COM_MEMORY_CORRUPTED,
ErrStr: "Memory corrupted",
}
ErrComOutOfMemory = &TaosError{
Code: COM_OUT_OF_MEMORY,
ErrStr: "Out of memory",
}
ErrComInvalidCfgMsg = &TaosError{
Code: COM_INVALID_CFG_MSG,
ErrStr: "Invalid config message",
}
ErrComFileCorrupted = &TaosError{
Code: COM_FILE_CORRUPTED,
ErrStr: "Data file corrupted",
}
ErrRefNoMemory = &TaosError{
Code: REF_NO_MEMORY,
ErrStr: "Ref out of memory",
}
ErrRefFull = &TaosError{
Code: REF_FULL,
ErrStr: "too many Ref Objs",
}
ErrRefIdRemoved = &TaosError{
Code: REF_ID_REMOVED,
ErrStr: "Ref ID is removed",
}
ErrRefInvalidId = &TaosError{
Code: REF_INVALID_ID,
ErrStr: "Invalid Ref ID",
}
ErrRefAlreadyExist = &TaosError{
Code: REF_ALREADY_EXIST,
ErrStr: "Ref is already there",
}
ErrRefNotExist = &TaosError{
Code: REF_NOT_EXIST,
ErrStr: "Ref is not there",
}
ErrTscInvalidOperation = &TaosError{
Code: TSC_INVALID_OPERATION,
ErrStr: "Invalid Operation",
}
ErrTscInvalidQhandle = &TaosError{
Code: TSC_INVALID_QHANDLE,
ErrStr: "Invalid qhandle",
}
ErrTscInvalidTimeStamp = &TaosError{
Code: TSC_INVALID_TIME_STAMP,
ErrStr: "Invalid combination of client/service time",
}
ErrTscInvalidValue = &TaosError{
Code: TSC_INVALID_VALUE,
ErrStr: "Invalid value in client",
}
ErrTscInvalidVersion = &TaosError{
Code: TSC_INVALID_VERSION,
ErrStr: "Invalid client version",
}
ErrTscInvalidIe = &TaosError{
Code: TSC_INVALID_IE,
ErrStr: "Invalid client ie",
}
ErrTscInvalidFqdn = &TaosError{
Code: TSC_INVALID_FQDN,
ErrStr: "Invalid host name",
}
ErrTscInvalidUserLength = &TaosError{
Code: TSC_INVALID_USER_LENGTH,
ErrStr: "Invalid user name",
}
ErrTscInvalidPassLength = &TaosError{
Code: TSC_INVALID_PASS_LENGTH,
ErrStr: "Invalid password",
}
ErrTscInvalidDbLength = &TaosError{
Code: TSC_INVALID_DB_LENGTH,
ErrStr: "Database name too long",
}
ErrTscInvalidTableIdLength = &TaosError{
Code: TSC_INVALID_TABLE_ID_LENGTH,
ErrStr: "Table name too long",
}
ErrTscInvalidConnection = &TaosError{
Code: TSC_INVALID_CONNECTION,
ErrStr: "Invalid connection",
}
ErrTscOutOfMemory = &TaosError{
Code: TSC_OUT_OF_MEMORY,
ErrStr: "System out of memory",
}
ErrTscNoDiskspace = &TaosError{
Code: TSC_NO_DISKSPACE,
ErrStr: "System out of disk space",
}
ErrTscQueryCacheErased = &TaosError{
Code: TSC_QUERY_CACHE_ERASED,
ErrStr: "Query cache erased",
}
ErrTscQueryCancelled = &TaosError{
Code: TSC_QUERY_CANCELLED,
ErrStr: "Query terminated",
}
ErrTscSortedResTooMany = &TaosError{
Code: TSC_SORTED_RES_TOO_MANY,
ErrStr: "Result set too large to be sorted",
}
ErrTscAppError = &TaosError{
Code: TSC_APP_ERROR,
ErrStr: "Application error",
}
ErrTscActionInProgress = &TaosError{
Code: TSC_ACTION_IN_PROGRESS,
ErrStr: "Action in progress",
}
ErrTscDisconnected = &TaosError{
Code: TSC_DISCONNECTED,
ErrStr: "Disconnected from service",
}
ErrTscNoWriteAuth = &TaosError{
Code: TSC_NO_WRITE_AUTH,
ErrStr: "No write permission",
}
ErrTscConnKilled = &TaosError{
Code: TSC_CONN_KILLED,
ErrStr: "Connection killed",
}
ErrTscSqlSyntaxError = &TaosError{
Code: TSC_SQL_SYNTAX_ERROR,
ErrStr: "Syntax error in sqlStr",
}
ErrTscDbNotSelected = &TaosError{
Code: TSC_DB_NOT_SELECTED,
ErrStr: "Database not specified or available",
}
ErrTscInvalidTableName = &TaosError{
Code: TSC_INVALID_TABLE_NAME,
ErrStr: "Table does not exist",
}
ErrTscExceedSqlLimit = &TaosError{
Code: TSC_EXCEED_SQL_LIMIT,
ErrStr: "sqlStr statement too long check maxSQLLength config",
}
ErrTscFileEmpty = &TaosError{
Code: TSC_FILE_EMPTY,
ErrStr: "File is empty",
}
ErrTscLineSyntaxError = &TaosError{
Code: TSC_LINE_SYNTAX_ERROR,
ErrStr: "Syntax error in Line",
}
ErrTscNoMetaCached = &TaosError{
Code: TSC_NO_META_CACHED,
ErrStr: "No table meta cached",
}
ErrMndMsgNotProcessed = &TaosError{
Code: MND_MSG_NOT_PROCESSED,
ErrStr: "Message not processed",
}
ErrMndActionInProgress = &TaosError{
Code: MND_ACTION_IN_PROGRESS,
ErrStr: "Message is progressing",
}
ErrMndActionNeedReprocessed = &TaosError{
Code: MND_ACTION_NEED_REPROCESSED,
ErrStr: "Messag need to be reprocessed",
}
ErrMndNoRights = &TaosError{
Code: MND_NO_RIGHTS,
ErrStr: "Insufficient privilege for operation",
}
ErrMndAppError = &TaosError{
Code: MND_APP_ERROR,
ErrStr: "Unexpected generic error in mnode",
}
ErrMndInvalidConnection = &TaosError{
Code: MND_INVALID_CONNECTION,
ErrStr: "Invalid message connection",
}
ErrMndInvalidMsgVersion = &TaosError{
Code: MND_INVALID_MSG_VERSION,
ErrStr: "Incompatible protocol version",
}
ErrMndInvalidMsgLen = &TaosError{
Code: MND_INVALID_MSG_LEN,
ErrStr: "Invalid message length",
}
ErrMndInvalidMsgType = &TaosError{
Code: MND_INVALID_MSG_TYPE,
ErrStr: "Invalid message type",
}
ErrMndTooManyShellConns = &TaosError{
Code: MND_TOO_MANY_SHELL_CONNS,
ErrStr: "Too many connections",
}
ErrMndOutOfMemory = &TaosError{
Code: MND_OUT_OF_MEMORY,
ErrStr: "Out of memory in mnode",
}
ErrMndInvalidShowobj = &TaosError{
Code: MND_INVALID_SHOWOBJ,
ErrStr: "Data expired",
}
ErrMndInvalidQueryId = &TaosError{
Code: MND_INVALID_QUERY_ID,
ErrStr: "Invalid query id",
}
ErrMndInvalidStreamId = &TaosError{
Code: MND_INVALID_STREAM_ID,
ErrStr: "Invalid stream id",
}
ErrMndInvalidConnId = &TaosError{
Code: MND_INVALID_CONN_ID,
ErrStr: "Invalid connection id",
}
ErrMndMnodeIsRunning = &TaosError{
Code: MND_MNODE_IS_RUNNING,
ErrStr: "mnode is alreay running",
}
ErrMndFailedToConfigSync = &TaosError{
Code: MND_FAILED_TO_CONFIG_SYNC,
ErrStr: "failed to config sync",
}
ErrMndFailedToStartSync = &TaosError{
Code: MND_FAILED_TO_START_SYNC,
ErrStr: "failed to start sync",
}
ErrMndFailedToCreateDir = &TaosError{
Code: MND_FAILED_TO_CREATE_DIR,
ErrStr: "failed to create mnode dir",
}
ErrMndFailedToInitStep = &TaosError{
Code: MND_FAILED_TO_INIT_STEP,
ErrStr: "failed to init components",
}
ErrMndSdbObjAlreadyThere = &TaosError{
Code: MND_SDB_OBJ_ALREADY_THERE,
ErrStr: "Object already there",
}
ErrMndSdbError = &TaosError{
Code: MND_SDB_ERROR,
ErrStr: "Unexpected generic error in sdb",
}
ErrMndSdbInvalidTableType = &TaosError{
Code: MND_SDB_INVALID_TABLE_TYPE,
ErrStr: "Invalid table type",
}
ErrMndSdbObjNotThere = &TaosError{
Code: MND_SDB_OBJ_NOT_THERE,
ErrStr: "Object not there",
}
ErrMndSdbInvaidMetaRow = &TaosError{
Code: MND_SDB_INVAID_META_ROW,
ErrStr: "Invalid meta row",
}
ErrMndSdbInvaidKeyType = &TaosError{
Code: MND_SDB_INVAID_KEY_TYPE,
ErrStr: "Invalid key type",
}
ErrMndDnodeAlreadyExist = &TaosError{
Code: MND_DNODE_ALREADY_EXIST,
ErrStr: "DNode already exists",
}
ErrMndDnodeNotExist = &TaosError{
Code: MND_DNODE_NOT_EXIST,
ErrStr: "DNode does not exist",
}
ErrMndVgroupNotExist = &TaosError{
Code: MND_VGROUP_NOT_EXIST,
ErrStr: "VGroup does not exist",
}
ErrMndNoRemoveMaster = &TaosError{
Code: MND_NO_REMOVE_MASTER,
ErrStr: "Master DNode cannot be removed",
}
ErrMndNoEnoughDnodes = &TaosError{
Code: MND_NO_ENOUGH_DNODES,
ErrStr: "Out of DNodes",
}
ErrMndClusterCfgInconsistent = &TaosError{
Code: MND_CLUSTER_CFG_INCONSISTENT,
ErrStr: "Cluster cfg inconsistent",
}
ErrMndInvalidDnodeCfgOption = &TaosError{
Code: MND_INVALID_DNODE_CFG_OPTION,
ErrStr: "Invalid dnode cfg option",
}
ErrMndBalanceEnabled = &TaosError{
Code: MND_BALANCE_ENABLED,
ErrStr: "Balance already enabled",
}
ErrMndVgroupNotInDnode = &TaosError{
Code: MND_VGROUP_NOT_IN_DNODE,
ErrStr: "Vgroup not in dnode",
}
ErrMndVgroupAlreadyInDnode = &TaosError{
Code: MND_VGROUP_ALREADY_IN_DNODE,
ErrStr: "Vgroup already in dnode",
}
ErrMndDnodeNotFree = &TaosError{
Code: MND_DNODE_NOT_FREE,
ErrStr: "Dnode not avaliable",
}
ErrMndInvalidClusterId = &TaosError{
Code: MND_INVALID_CLUSTER_ID,
ErrStr: "Cluster id not match",
}
ErrMndNotReady = &TaosError{
Code: MND_NOT_READY,
ErrStr: "Cluster not ready",
}
ErrMndDnodeIdNotConfigured = &TaosError{
Code: MND_DNODE_ID_NOT_CONFIGURED,
ErrStr: "Dnode Id not configured",
}
ErrMndDnodeEpNotConfigured = &TaosError{
Code: MND_DNODE_EP_NOT_CONFIGURED,
ErrStr: "Dnode Ep not configured",
}
ErrMndAcctAlreadyExist = &TaosError{
Code: MND_ACCT_ALREADY_EXIST,
ErrStr: "Account already exists",
}
ErrMndInvalidAcct = &TaosError{
Code: MND_INVALID_ACCT,
ErrStr: "Invalid account",
}
ErrMndInvalidAcctOption = &TaosError{
Code: MND_INVALID_ACCT_OPTION,
ErrStr: "Invalid account options",
}
ErrMndAcctExpired = &TaosError{
Code: MND_ACCT_EXPIRED,
ErrStr: "Account authorization has expired",
}
ErrMndUserAlreadyExist = &TaosError{
Code: MND_USER_ALREADY_EXIST,
ErrStr: "User already exists",
}
ErrMndInvalidUser = &TaosError{
Code: MND_INVALID_USER,
ErrStr: "Invalid user",
}
ErrMndInvalidUserFormat = &TaosError{
Code: MND_INVALID_USER_FORMAT,
ErrStr: "Invalid user format",
}
ErrMndInvalidPassFormat = &TaosError{
Code: MND_INVALID_PASS_FORMAT,
ErrStr: "Invalid password format",
}
ErrMndNoUserFromConn = &TaosError{
Code: MND_NO_USER_FROM_CONN,
ErrStr: "Can not get user from conn",
}
ErrMndTooManyUsers = &TaosError{
Code: MND_TOO_MANY_USERS,
ErrStr: "Too many users",
}
ErrMndTableAlreadyExist = &TaosError{
Code: MND_TABLE_ALREADY_EXIST,
ErrStr: "Table already exists",
}
ErrMndInvalidTableId = &TaosError{
Code: MND_INVALID_TABLE_ID,
ErrStr: "Table name too long",
}
ErrMndInvalidTableName = &TaosError{
Code: MND_INVALID_TABLE_NAME,
ErrStr: "Table does not exist",
}
ErrMndInvalidTableType = &TaosError{
Code: MND_INVALID_TABLE_TYPE,
ErrStr: "Invalid table type in tsdb",
}
ErrMndTooManyTags = &TaosError{
Code: MND_TOO_MANY_TAGS,
ErrStr: "Too many tags",
}
ErrMndTooManyColumns = &TaosError{
Code: MND_TOO_MANY_COLUMNS,
ErrStr: "Too many columns",
}
ErrMndTooManyTimeseries = &TaosError{
Code: MND_TOO_MANY_TIMESERIES,
ErrStr: "Too many time series",
}
ErrMndNotSuperTable = &TaosError{
Code: MND_NOT_SUPER_TABLE,
ErrStr: "Not super table",
}
ErrMndColNameTooLong = &TaosError{
Code: MND_COL_NAME_TOO_LONG,
ErrStr: "Tag name too long",
}
ErrMndTagAlreayExist = &TaosError{
Code: MND_TAG_ALREAY_EXIST,
ErrStr: "Tag already exists",
}
ErrMndTagNotExist = &TaosError{
Code: MND_TAG_NOT_EXIST,
ErrStr: "Tag does not exist",
}
ErrMndFieldAlreayExist = &TaosError{
Code: MND_FIELD_ALREAY_EXIST,
ErrStr: "Field already exists",
}
ErrMndFieldNotExist = &TaosError{
Code: MND_FIELD_NOT_EXIST,
ErrStr: "Field does not exist",
}
ErrMndInvalidStableName = &TaosError{
Code: MND_INVALID_STABLE_NAME,
ErrStr: "Super table does not exist",
}
ErrMndInvalidCreateTableMsg = &TaosError{
Code: MND_INVALID_CREATE_TABLE_MSG,
ErrStr: "Invalid create table message",
}
ErrMndExceedMaxRowBytes = &TaosError{
Code: MND_EXCEED_MAX_ROW_BYTES,
ErrStr: "Exceed max row bytes",
}
ErrMndInvalidFuncName = &TaosError{
Code: MND_INVALID_FUNC_NAME,
ErrStr: "Invalid func name",
}
ErrMndInvalidFuncLen = &TaosError{
Code: MND_INVALID_FUNC_LEN,
ErrStr: "Invalid func length",
}
ErrMndInvalidFuncCode = &TaosError{
Code: MND_INVALID_FUNC_CODE,
ErrStr: "Invalid func code",
}
ErrMndFuncAlreadyExist = &TaosError{
Code: MND_FUNC_ALREADY_EXIST,
ErrStr: "Func already exists",
}
ErrMndInvalidFunc = &TaosError{
Code: MND_INVALID_FUNC,
ErrStr: "Invalid func",
}
ErrMndInvalidFuncBufsize = &TaosError{
Code: MND_INVALID_FUNC_BUFSIZE,
ErrStr: "Invalid func bufSize",
}
ErrMndDbNotSelected = &TaosError{
Code: MND_DB_NOT_SELECTED,
ErrStr: "Database not specified or available",
}
ErrMndDbAlreadyExist = &TaosError{
Code: MND_DB_ALREADY_EXIST,
ErrStr: "Database already exists",
}
ErrMndInvalidDbOption = &TaosError{
Code: MND_INVALID_DB_OPTION,
ErrStr: "Invalid database options",
}
ErrMndInvalidDb = &TaosError{
Code: MND_INVALID_DB,
ErrStr: "Invalid database name",
}
ErrMndMonitorDbForbidden = &TaosError{
Code: MND_MONITOR_DB_FORBIDDEN,
ErrStr: "Cannot delete monitor database",
}
ErrMndTooManyDatabases = &TaosError{
Code: MND_TOO_MANY_DATABASES,
ErrStr: "Too many databases for account",
}
ErrMndDbInDropping = &TaosError{
Code: MND_DB_IN_DROPPING,
ErrStr: "Database not available",
}
ErrMndVgroupNotReady = &TaosError{
Code: MND_VGROUP_NOT_READY,
ErrStr: "Database unsynced",
}
ErrMndInvalidDbOptionDays = &TaosError{
Code: MND_INVALID_DB_OPTION_DAYS,
ErrStr: "Invalid database option: days out of range",
}
ErrMndInvalidDbOptionKeep = &TaosError{
Code: MND_INVALID_DB_OPTION_KEEP,
ErrStr: "Invalid database option: keep >= keep1 >= keep0 >= days",
}
ErrMndInvalidTopic = &TaosError{
Code: MND_INVALID_TOPIC,
ErrStr: "Invalid topic nam",
}
ErrMndInvalidTopicOption = &TaosError{
Code: MND_INVALID_TOPIC_OPTION,
ErrStr: "Invalid topic optio",
}
ErrMndInvalidTopicPartitons = &TaosError{
Code: MND_INVALID_TOPIC_PARTITONS,
ErrStr: "Invalid topic partitons num, valid range: [1, 1000",
}
ErrMndTopicAlreadyExist = &TaosError{
Code: MND_TOPIC_ALREADY_EXIST,
ErrStr: "Topic already exist",
}
ErrDndMsgNotProcessed = &TaosError{
Code: DND_MSG_NOT_PROCESSED,
ErrStr: "Message not processed",
}
ErrDndOutOfMemory = &TaosError{
Code: DND_OUT_OF_MEMORY,
ErrStr: "Dnode out of memory",
}
ErrDndNoWriteAccess = &TaosError{
Code: DND_NO_WRITE_ACCESS,