global-errors 0.1.0

sinsegye test runtime global errors
Documentation
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
// This file is @generated by prost-build.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Err {
    /// Common error codes
    /// (range: =0; // 0x0000 - =0; // 0x00FF)
    ///
    /// 0x0000
    Ok = 0,
    /// 0x0001  /* General error - to be used only for internal errors */
    Failed = 1,
    /// 0x0002
    Parameter = 2,
    /// 0x0003  /* Function cannot be executed, since component has not been initialized yet. It may work later, though */
    Notinitialized = 3,
    /// 0x0004  /* Version conflict */
    Version = 4,
    /// 0x0005  /* Operation timed out */
    Timeout = 5,
    /// 0x000A  /* For async-calls: call not complete, yet */
    Pending = 10,
    /// 0x000B  /* To many pending calls. Try later */
    Numpending = 11,
    /// 0x000C  /* The function is not implemented */
    Notimplemented = 12,
    /// 0x000D  /* No object with the provided id found */
    Invalidid = 13,
    /// 0x000E  /* Integer overflow */
    Overflow = 14,
    /// 0x000F	/* The size of a buffer is to small or invalid */
    Buffersize = 15,
    /// 0x0010	/* No object with this specified name available */
    NoObject = 16,
    /// 0x0011	/* No heap memory available */
    Nomemory = 17,
    /// 0x0012	/* An object with the same name is still available */
    Duplicate = 18,
    /// 0x0013	/* Heap memory was written out of bounds! Memory overwrite error */
    MemoryOverwrite = 19,
    /// 0x0014	/* Invalid handle to an object */
    InvalidHandle = 20,
    /// 0x0015	/* End of object reached */
    EndOfObject = 21,
    /// 0x0016	/* No changes done */
    NoChange = 22,
    /// 0x0017	/* Invalid or unknown interface */
    InvalidInterface = 23,
    /// 0x0018	/* Functionality not supported */
    NotSupported = 24,
    /// 0x0019	/* No access rights for this operation */
    NoAccessRights = 25,
    /// 0x001A	/* Specified limits of a resource exceeded */
    OutOfLimits = 26,
    /// 0x001B	/* Remaining entries that could not be transmitted because of buffer limitation */
    EntriesRemaining = 27,
    /// 0x001C	/* Invalid online sessionid */
    InvalidSessionId = 28,
    /// 0x001D	/* Exception occurred */
    Exception = 29,
    /// 0x001E	/* Signature mismatch of an api function */
    SignatureMismatch = 30,
    /// 0x001F	/* Version mismatch */
    VersionMismatch = 31,
    /// 0x0020	/* Type mismatch */
    TypeMismatch = 32,
    /// 0x0021	/* ID mismatch */
    IdMismatch = 33,
    /// 0x0022	/* Consistency error */
    NoConsistency = 34,
    /// 0x0023	/* No COMM_CYCLE needed */
    NoCommCycle = 35,
    /// 0x0024	/* Do not suspend task after an exception */
    DontSuspendTask = 36,
    /// 0x0025	/* Memory cannot be locked in this operation */
    MemoryLockFailed = 37,
    /// 0x0026	/* License missing for the runtime */
    LicenseMissing = 38,
    /// 0x0027	/* Operation denied */
    OperationDenied = 39,
    /// 0x0028	/* Device error */
    Device = 40,
    /// 0x0029	/* Disk full */
    DiskFull = 41,
    /// 0x0030
    CrcFailed = 48,
    /// 0x0031
    MediaErase = 49,
    /// 0x0032	/* File error. e.g. cannot open a file for writing because it could be write protected */
    FileError = 50,
    /// 0x0033	/* No retain memory available */
    NoRetainMemory = 51,
    /// 0x0034	/* Specified minimum-limit of a resource exceeded */
    OutOfLimitsMin = 52,
    /// 0x0035	/* Specified maximum-limit of a resource exceeded */
    OutOfLimitsMax = 53,
    /// 0x0036	/* Size mismatch */
    SizeMismatch = 54,
    /// 0x0037	/* Operation is not yet finished, call function again to proceed */
    CallAgain = 55,
    /// 0x0038	/* Operation has nothing to do. No execution. */
    NothingToDo = 56,
    /// 0x0039	/* Some security checks have failed. This is a generic error code to report this error over public channels. In this case the error code doesn't provide a detailed cause for the error. */
    SecurityChecksFailed = 57,
    /// 0x003A
    InvalidSequence = 58,
    /// 0x003B	/* Dereferencing an IEC reference in IecVarAccess failed due to invalid destination address, e. G. NULL. */
    InvalidReference = 59,
    /// 0x003C /* Conversion of string encodings was not lossless. */
    ConversionIncomplete = 60,
    /// 0x003D	/* Too many retries of an action */
    TooManyRetries = 61,
    /// 0x003E /* There is an unaligned access on memory detected. */
    Alignment = 62,
    /// 0x003F /* The password has to be changed */
    ChangePassword = 63,
    /// 0x0040 /* The user has to reauthenticate oneself */
    Reauthenticate = 64,
    /// 0x0041 /* The user has to relogin */
    Relogin = 65,
    /// 0x0042 /* An URL was not valid. */
    InvalidUrl = 66,
    /// 0x0043 /* The component state does not allow to call this function. */
    InvalidState = 67,
    /// 0x0044 /* User mismatch */
    UserMismatch = 68,
    /// 0x0045 /* The service is not ready yet. Try again later */
    NotReadyYet = 69,
    /// 0x0046 /* The user management has to be activated. */
    ActivateUsermgmt = 70,
    /// 0x0047 /* A login was done with a user name, but no user management is active. */
    NoUsermgmt = 71,
    /// 0x0048 /* A string encoding was not correct. */
    InvalidEncoding = 72,
    /// 0x0049 /* Target mismatch detected */
    TargetMismatch = 73,
    /// 0x004A /* Client is in readonly mode and has no rights for this service. */
    ClientInRoMode = 74,
    /// 0x004B /* License is not sufficient */
    LicenseExceeded = 75,
    /// 0x004C /* Exception occured during execution of async service task */
    AsyncException = 76,
    /// 0x004D /* Object contains no siganture */
    NoSignature = 77,
    /// Getwork errors
    /// (r0100 - =0; // 0x010F)
    ///
    /// 0x0100  /* General failure of a network call */
    NetFailed = 256,
    /// 0x0101	/* Connection not established or closed */
    NetNotconnected = 257,
    /// 0x0102  /* Message exceeds the maximum message size */
    NetMsgsize = 258,
    /// 0x0103  /* No route found */
    NetNoroute = 259,
    /// 0x0104  /* Timeout of the network call */
    NetTimeout = 262,
    /// 0x0105  /* A network (Layer 3) package is invalid */
    NetPkginvalid = 261,
    /// Nervice errors (issued by the server of a network service)
    /// (x0120 - =0; // 0x012F)
    ///
    /// 0x0120  /* The received package is not compliant with the service specification */
    SvcPkginvalid = 288,
    /// 0x0121  /* The requested service does not exist */
    SvcInvalidservice = 289,
    /// 0x0122  /* The requested service version does not exist */
    SvcVersionMismatch = 290,
    /// Nlient errors (issued by the client of a network service)
    /// (x0140 - =0; // 0x014F)
    ///
    /// 0x0140	/* The received package is not compliant with the service specification */
    ClntPkginvalid = 320,
    /// Drver errors
    /// (r0170 - =0; // 0x017F)
    ///
    /// 0x0170 /* User login failed */
    DevsLoginfailed = 368,
    /// 0x0171 /* Inactive session closed due to timeout */
    DevsSessiontimeout = 369,
    /// 0x0172 /* Channel has been closed */
    DevsChannelclosed = 370,
    /// Cerver (PLC) errors
    /// (r0180 - =0; // 0x019F)
    ///
    /// 0x0181 /* Channel Id invalid */
    ChsChinvalid = 385,
    /// 0x0182 /* Channel closed due to a timeout */
    ChsTimeout = 386,
    /// 0x0183 /* Protocol error */
    ChsProtocol = 387,
    /// 0x0184 /* Inrecoverable transmission error (checksum) etc. */
    ChsChecksum = 388,
    /// 0x0185 /* The server application tried to send a message although the channel is in receive mode */
    ChsModehost = 389,
    /// 0x0186 /* Incoming message although the channel is in send mode. */
    ChsModepeer = 390,
    /// 0x0187 /* No more channels available. */
    ChsNumchannels = 391,
    /// 0x0188 /* Channel closed by peer */
    ChsClosed = 392,
    /// 0x0189 /* Message exceeds the commbuffer size */
    ChsMessagesize = 393,
    /// 0x018A /* The server application didn't properly handle an incoming request */
    ChsReqnothandled = 394,
    /// 0x018B /* The channel is closed due a runtime system shutdown */
    ChsShutdown = 395,
    /// 0x018C /* The CmpSecureChannel is not ready for encrypted communication. Try again later */
    ChsEncryptionNotReadyYet = 396,
    /// 0x0190 /* This node is not a server node */
    ChsNotserver = 400,
    /// Client (eg. the gateway) errors
    /// (r01A0 - =0; // 0x01BF)
    ///
    /// 0x01A1 /* Channel Id invalid */
    ChcChinvalid = 417,
    /// 0x01A2 /* Channel closed or connect failed due to a timeout */
    ChcTimeout = 418,
    /// 0x01A3 /* Protocol error */
    ChcProtocol = 419,
    /// 0x01A4 /* Inrecoverable transmission error (checksum) etc. */
    ChcChecksum = 420,
    /// 0x01A5 /* The client application tried to send a message although the channel is in receive mode */
    ChcModehost = 421,
    /// 0x01A6 /* Incoming message although the channel is in send mode. */
    ChcModepeer = 422,
    /// 0x01A7 /* No more channels available. */
    ChcNumchannels = 423,
    /// 0x01A8 /* Channel closed by peer */
    ChcClosed = 424,
    /// 0x01A9 /* Message exceeds the commbuffer size */
    ChcMessagesize = 425,
    /// 0x01AA /* Not enough memory to provide the required communication buffer */
    ChcNochbuffer = 426,
    /// Grrors (Client-Gateway communication)
    /// (x01C0 - =0; // 0x01D0)
    ///
    /// 0x01C0  /* Invalid pkg */
    GwInvalidpkg = 448,
    /// 0x01C1  /* Protocol error */
    GwProtocol = 449,
    /// 0x01C2  /* Clients protocol version cannot be handled */
    GwVersion = 450,
    /// 0x01C3  /* The authentication modules provided by the client are not available on the gateway */
    GwNoauthmodule = 454,
    /// 0x01C4  /* Command or command group not known by the gateway */
    GwUnknowncmd = 452,
    /// 0x01C5  /* The request has been canceled by a cancelrequest message */
    GwReqcanceled = 453,
    /// 0x01C7  /* The referenced request cannot be canceled (certain requests may not be canceled once they are initiated) */
    GwCancelfailed = 455,
    /// 0x01C8  /* The connection handle is invalid. */
    GwInvalidconn = 456,
    /// 0x01C9  /* GWClient/driver can't handle another connection. */
    GwNumconnections = 457,
    /// 0x01CA  /* Parameter values are not supported by the negotiated protocol version between GwClient and Gateway (old Gateway). */
    GwParameterNotSupported = 458,
    /// 0x01CB  /* Command is not supported by the negotiated protocol version between GwClient and Gateway (old Gateway). */
    GwCommandNotSupported = 459,
    /// 0x01CC  /* GwClient has not received any data within the timeout */
    GwClientTimeout = 460,
    /// 0x01CD  /* Gateway has not received any data within the timeout */
    GwTimeout = 461,
    /// Srors
    /// (r0200 - =0; // 0x02FF)
    ///
    /// 0x0201
    SockNotinitialized = 513,
    /// 0x0202  /* The provided socket handle is invalid */
    SockNotsocket = 514,
    /// 0x0203  /* The address family is not supported */
    SockAfunsupported = 515,
    /// 0x0204  /* Protocol is not supported */
    SockProtounsupported = 516,
    /// 0x0205  /* Not enough buffer to handle the request */
    SockNobuffer = 517,
    /// 0x0206  /* Socket is in nonblocking mode but this call would block */
    SockWouldblock = 518,
    /// 0x0207  /* The provided address is already in use */
    SockAddrinuse = 519,
    /// 0x0208  /* The provided address is not available on this computer */
    SockAddrnotavailable = 520,
    /// 0x0209  /* Connection has been refused by the remote host */
    SockConnrefused = 521,
    /// 0x020A  /* Operation timed out */
    SockTimedout = 522,
    /// 0x020B  /* The host has not been found */
    SockHostnotfound = 523,
    /// 0x020C  /* Host is unreachable */
    SockHostunreachable = 524,
    /// 0x020D  /* Socket is already connected */
    SockIsconnected = 525,
    /// 0x020E  /* The socket is not connected */
    SockNotconnected = 526,
    /// 0x020F  /* Shutdown has been called on the socket */
    SockShutdown = 527,
    /// 0x0210  /* For sockets of type DGRAM. The package to send exceeds the maximum package size */
    SockMsgsize = 528,
    /// 0x0211  /* Socket has been gracefully closed. No more send/receives allowed */
    SockClosed = 529,
    /// Lol errors
    /// (r0300 - =0; // 0x03FF)
    ///
    /// 0x0300	/* Tag missing in online communication buffer */
    L7TagMissing = 768,
    /// 0x0301  /* Unknown command group */
    L7Unknowncmdgroup = 769,
    /// 0x0302	/* Unknown command (within a valid command group) */
    L7Unknowncmd = 770,
    /// 0x0303	/* Level 7 service incomplete */
    L7Incomplete = 771,
    /// 0x0304	/* Received protocol does not match to the expected protocol on this channel */
    L7Protocolmismatch = 772,
    /// E the BinTagUtils library
    /// (x0400-=0; // 0x040F)
    ///
    /// 0x0400 /* A nested tag reaches beyond the end of the surrounding tag */
    BtagTagoverlap = 1024,
    /// 0x0401 /* A tag reaches beyond the end of the buffer */
    BtagBufferoverrun = 1025,
    /// 0x0402 /* The number of nested tags exceeds the maximum nesting depth */
    BtagMaxnestingdepth = 1026,
    /// 0x0403 /* No current tag - reader/writer is at the toplevel. */
    BtagNotag = 1027,
    /// 0x0404 /* The current tag is not a data tag */
    BtagNodatatag = 1028,
    /// 0x0405 /* The operation is allowed only on a container tag not on a data tag */
    BtagNocontainertag = 1029,
    /// 0x0406 /* Operation only allowed on toplevel (not inside a tag) */
    BtagNottoplevel = 1030,
    /// 0x0407 /* Invalid alignment */
    BtagAlignment = 1031,
    /// E the Application component
    /// (x0500-=0; // 0x05FF)
    ///
    /// 0x0500 /* Application with same name exists */
    AppExists = 1280,
    /// 0x0501 /* Application not available */
    AppNotExist = 1281,
    /// 0x0502 /* Invalid sessionid */
    AppInvalidSessionid = 1282,
    /// 0x0503 /* Invalid dataid of application. Data don't match! */
    AppInvalidDataid = 1283,
    /// 0x0504 /* Application not loaded */
    AppNotLoaded = 1284,
    /// 0x0505 /* no sessionid specified */
    AppNoSessionid = 1285,
    /// 0x0506 /* unresolved external function */
    AppUnresolvedReference = 1286,
    /// 0x0507 /* signature mismatch */
    AppSignatureMismatch = 1287,
    /// 0x0508 /* loading retain data failed */
    AppLoadRetainDataFailed = 1288,
    /// 0x0509 /* Version mismatch of an external lib function */
    AppVersionMismatch = 1289,
    /// 0x050A /* Retain mismatch of the retain area */
    AppRetainMismatch = 1290,
    /// 0x050B /* Ask, if single cycle should be done on breakpoint */
    AppSinglecycleOnBreakpoint = 1291,
    /// 0x050C /* Bootproject could not be created */
    AppCreateBootprojectFailed = 1292,
    /// 0x50D   /* Breakpoint condition too complex */
    AppBpConditionTooComplex = 1293,
    /// 0x50E   /* Breakpoint could not be set */
    AppBpBreakpointNotSet = 1294,
    /// 0x50F /* Interpreter code for Breakpoint is too complex */
    AppBpInterpCodeTooComplex = 1295,
    /// 0x0510 /* Bootproject could not be created, disk full */
    AppCreateBootprojectFailedDiskFull = 1296,
    /// 0x0511 /* Loading any of the C-Integration modules failed */
    AppLoadingCintegrationModules = 1297,
    /// 0x0512 /* Don't initialize area */
    AppDontInitArea = 1298,
    /// 0x0513 /* A data segment has been mapped to an area that could not be found */
    AppMappedAreaNotFound = 1299,
    /// 0x0514 /* The digital signature of the download is missing. This is requried by the runtime configuration */
    AppSignatureMissing = 1230,
    /// 0x0515 /* The decrytion of the application code failed */
    AppDecryptionFailed = 1231,
    /// 0x0516 /* The application code is not encrypted. This is required by the runtime */
    AppEncryptionMissing = 1232,
    /// 0x0517 /* The application code is not signed and encrypted */
    AppSignatureAndEncryptionMissing = 1233,
    /// 0x0518   /* Breakpoint could not be deleted */
    AppBpBreakpointNotDeleted = 1304,
    /// 0x0600		/* Internal Error of TLS component */
    TlsInternal = 1536,
    /// 0x0601		/* Random number generator was not seeded with enough entropy */
    TlsRandNotInit = 1537,
    /// 0x0602		/* The configured type of the socket does not allow this operation */
    TlsInvalidSockettype = 1538,
    /// 0x0603		/* The TLS handshake has already been done */
    TlsAlreadyStarted = 1539,
    /// Iions
    ///
    /// 0x0610		/* The TLS connection has been closed. */
    TlsConnectionClosed = 1552,
    /// 0x0611		/* The same TLS operation should be called again */
    TlsRetryOperation = 1556,
    /// 0x0612		/* The underlaying transport caused a problem */
    TlsIoSystem = 1554,
    /// 0x0613		/* The finish this operation data have to be read. The data was not available. Receive TLS protocol data to finish this operation */
    TlsWantRead = 1555,
    /// Cte errors
    ///
    /// 0x0620
    TlsCertInvalid = 1568,
    /// 0x0621
    TlsCertSelfsigned = 1569,
    /// 0x0622
    TlsCertExpired = 1570,
    /// irror (for uninitialized values, to avoid ERR_CERT_OK)
    ///
    /// 0x701
    CertUnableToGetIssuerCert = 1793,
    /// 0x702
    CertUnableToGetCrl = 1794,
    /// 0x703
    CertUnableToDecryptCertSignature = 1795,
    /// 0x704
    CertUnableToDecryptCrlSignature = 1796,
    /// 0x705
    CertUnableToDecodeIssuerPublicKey = 1797,
    /// 0x706
    CertSignatureFailure = 1798,
    /// 0x707
    CertCrlSignatureFailure = 1799,
    /// 0x708
    CertNotYetValid = 1800,
    /// 0x709
    CertHasExpired = 1801,
    /// 0x70a
    CertCrlNotYetValid = 1802,
    /// 0x70b
    CertCrlHasExpired = 1803,
    /// 0x70c
    CertErrorInCertNotBeforeField = 1804,
    /// 0x70d
    CertErrorInCertNotAfterField = 1805,
    /// 0x70e
    CertErrorInCrlLastUpdateField = 1806,
    /// 0x70f
    CertErrorInCrlNextUpdateField = 1807,
    /// 0x710
    CertOutOfMem = 1808,
    /// 0x711
    CertDepthZeroSelfSignedCert = 1809,
    /// 0x712
    CertSelfSignedCertInChain = 1810,
    /// 0x713
    CertUnableToGetIssuerCertLocally = 1811,
    /// 0x714
    CertUnableToVerifyLeafSignature = 1812,
    /// 0x715
    CertChainTooLong = 1813,
    /// 0x716
    CertRevoked = 1814,
    /// 0x717
    CertInvalidCa = 1815,
    /// 0x718
    CertPathLengthExceeded = 1816,
    /// 0x719
    CertInvalidPurpose = 1817,
    /// 0x71a
    CertUntrusted = 1818,
    /// 0x71b
    CertRejected = 1819,
    /// T 'informational' when looking for issuer cert
    ///
    /// 0x71c
    CertSubjectIssuerMismatch = 1820,
    /// 0x71d
    CertAkidSkidMismatch = 1821,
    /// 0x71e
    CertAkidIssuerSerialMismatch = 1822,
    /// 0x71f
    CertKeyusageNoCertsign = 1823,
    /// 0x720
    CertUnableToGetCrlIssuer = 1824,
    /// 0x721
    CertUnhandledCriticalExtension = 1825,
    /// 0x722
    CertKeyusageNoCrlSign = 1826,
    /// 0x723
    CertUnhandledCriticalCrlExtension = 1827,
    /// 0x724
    CertInvalidNonCa = 1828,
    /// 0x725
    CertProxyPathLengthExceeded = 1829,
    /// 0x726
    CertKeyusageNoDigitalSignature = 1830,
    /// 0x727
    CertProxyCertificatesNotAllowed = 1831,
    /// 0x728
    CertInvalidExtension = 1832,
    /// 0x729
    CertInvalidPolicyExtension = 1833,
    /// 0x72a
    CertNoExplicitPolicy = 1834,
    /// 0x72b
    CertDifferentCrlScope = 1835,
    /// 0x72c
    CertUnsupportedExtensionFeature = 1836,
    /// 0x72d
    CertUnnestedResource = 1837,
    /// 0x72e
    CertPermittedViolation = 1838,
    /// 0x72f
    CertExcludedViolation = 1839,
    /// 0x730
    CertSubtreeMinmax = 1840,
    /// 0x731
    CertUnsupportedConstraintType = 1841,
    /// 0x732
    CertUnsupportedConstraintSyntax = 1842,
    /// 0x733
    CertUnsupportedNameSyntax = 1843,
    /// 0x734
    CertCrlPathValidationError = 1844,
    /// Tcation is not happy
    ///
    /// 0x735
    CertApplicationVerification = 1845,
    /// 0x736
    CertMissing = 1846,
    /// 0x737
    CertUnknownError = 1847,
    /// 0x750		/* The p12 operation failed for an unknown reason */
    P12UnknownError = 1872,
    /// 0x751		/* The MAC of the p12 operation was invalid. Typically this is because of a wrong passphrase */
    P12MacInvalid = 1873,
    /// 0x752		/* The p12 container was created with an unsupported encryption algorithm */
    P12UnsupportedCipher = 1874,
    /// 0x753		/* The p12 container was created with an unsupported digest algorithm */
    P12UnsupportedDigest = 1875,
    /// 0x754		/* The p12 container was created with an unsupported option. */
    P12UnsupportedOption = 1876,
    /// 0x755		/* The p12 container could not be parsed. */
    P12ParseError = 1877,
    /// 0x756		/* The private key of the p12 container does not match the certifictate within the container. */
    P12KeyNomatch = 1878,
    /// 0x757		/* The p12 container does not contain a private key. */
    P12NoKey = 1879,
    /// 0x758		/* The p12 container does not contain a certificate. */
    P12NoCert = 1880,
    /// Dnagement errors
    /// (x800 - =0; // 0x8FF)
    ///
    /// 0x801		/* The corresponding device management service is not running and cannot be started! */
    DmsServiceNotRunning = 2049,
    /// 0x06
    MonitoringErrNestingDepth = 6,
    /// 0x07
    MonitoringErrNoConsistency = 7,
    /// 0x08
    MonitoringErrBuffersizeExceeded = 8,
    /// 0x09
    MonitoringErrInvalidIndex = 9,
    /// 0xff
    MonitoringErrUnknown = 255,
    /// Ffer errors
    ///
    /// 0x0800	/* File size don't match */
    FtFileSizeMismatch = 2048,
    /// Iess errors
    ///
    /// 0x0900	/* Unknown symbolic node type */
    IecvaraccUnknownNodeType = 2304,
    /// 0x0901	/* No child not available */
    IecvaraccNoChildNode = 2305,
    /// 0x0902	/* Symbolconfiguration has changed */
    IecvaraccConfigChanged = 2306,
    /// 0x0903	/* AF_ALLOW_SYMBOLIC_VARIABLE_ACCESS_IN_SYNC_WITH_IEC_TASK is not set for all applications on the device*/
    IecvaraccSyncConsistencyDenied = 2307,
    /// 0x0A00	/* A received message id was invalid. */
    EdgeInvalidMessageid = 2560,
    /// 0x0A01	/* A session is in an invalid state. */
    EdgeInvalidState = 2561,
    /// 0x0A02	/* Unknown session id requested */
    EdgeSessionidInvalid = 2562,
    /// 0x0A03	/* The received package is not compliant with the service specification */
    EdgePkginvalid = 2563,
    /// 0x0A04	/* Not enough buffer to handle the request */
    EdgeNobuffer = 2564,
    /// 0x0A05	/* Timeout of the request */
    EdgeTimeout = 2565,
    /// 0x0A06	/* The requested variable type or size does not match, maybe out of date */
    EdgeVarMismatch = 2566,
    /// 0x0A07	/* The PLC state is not in state STATE_RUNNING */
    EdgePlcNotConnected = 2567,
    /// 0x0A08	/* Invalid variable list specified */
    EdgePlcNoCyclicListDefined = 2568,
    /// 0x0A09	/* Communication error occurred during symbol load */
    EdgeCommFatal = 2569,
    /// Vndancy errors
    ///
    /// 0x0B00	/* Too many tags */
    ReduTooTags = 2816,
    /// 0x0B01	/* Memory error during ID creation */
    ReduMemory = 2817,
    /// 0x0B02  /* Client creation error */
    ReduClientCreationErr = 2818,
    /// 0x0B03 /* This CFA Signature Scheme v1 signer's certificate could not be parsed. */
    DmSigSigMalformedCertificate = 2819,
    /// 0x0B04 /* Failed to parse this signer's signature record contained in the CFA Signature Scheme v1 signature. */
    DmSigSigMalformedSignature = 2820,
    /// 0x0B05 /* Failed to parse this signer's digest record contained in the CFA Signature Scheme v1 signature. */
    DmSigSigMalformedDigest = 2821,
    /// 0x0B06 /* This CFA Signature Scheme v1 signer contains a malformed additional attribute. */
    DmSigSigMalformedAdditionalAttribute = 2822,
    /// 0x0B07 /* No signers in CFA Signature Scheme v1 signature */
    DmSigSigNoSigners = 2823,
    /// 0x0B08 /* This CFA Signature Scheme v1 signer contains a signature produced using an unknown algorithm. */
    DmSigSigUnknownSigAlgorithm = 2824,
    /// 0x0B09 /* This CFA Signature Scheme v1 signer contains an unknown additional attribute. */
    DmSigSigUnknownAdditionalAttribute = 2825,
    /// 0x0B0A /* An error was encountered while verifying CFA Signature Scheme v1 signature of this signer. */
    DmSigSigVerifyError = 2826,
    /// 0x0B0B /* Signature over signed-data did not verify */
    DmSigSigDidNotVerify = 2827,
    /// 0x0B0C /* No signatures */
    DmSigSigNoSignatures = 2828,
    /// 0x0B0D /* No supported signatures */
    DmSigSigNoSupportedSignatures = 2829,
    /// 0x0B0E /* No certificates */
    DmSigSigNoCertificates = 2830,
    /// 0x0B0F /* This CFA Signature Scheme v1 signer's public key listed in the signer's certificate does not match the public key listed in the signatures record. */
    DmSigSigPublicKeyMismatchBetweenCertificateAndSignaturesRecord = 2831,
    /// 0x0B10 /* This CFA Signature Scheme v1 signer's signature algorithms listed in the signatures record do not match the signature algorithms listed in the signatures record. */
    DmSigSigSigAlgMismatchBetweenSignaturesAndDigestsRecords = 2832,
    /// 0x0B11 /* The CFA's digest does not match the digest contained in the CFA Signature Scheme v1 signature. */
    DmSigSigCfaDigestDidNotVerify = 2833,
    /// 0x0B12 /* CFA Signing Block contains an unknown entry. */
    DmSigCfaSigBlockUnknownEntryId = 2834,
    /// Ofic error code range
    ///
    /// 0x8000	/* OEM error range start */
    OemStart = 32768,
    /// 0xFFFF	/* OEM error range end */
    OemEnd = 65535,
}
impl Err {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Ok => "ERR_OK",
            Self::Failed => "ERR_FAILED",
            Self::Parameter => "ERR_PARAMETER",
            Self::Notinitialized => "ERR_NOTINITIALIZED",
            Self::Version => "ERR_VERSION",
            Self::Timeout => "ERR_TIMEOUT",
            Self::Pending => "ERR_PENDING",
            Self::Numpending => "ERR_NUMPENDING",
            Self::Notimplemented => "ERR_NOTIMPLEMENTED",
            Self::Invalidid => "ERR_INVALIDID",
            Self::Overflow => "ERR_OVERFLOW",
            Self::Buffersize => "ERR_BUFFERSIZE",
            Self::NoObject => "ERR_NO_OBJECT",
            Self::Nomemory => "ERR_NOMEMORY",
            Self::Duplicate => "ERR_DUPLICATE",
            Self::MemoryOverwrite => "ERR_MEMORY_OVERWRITE",
            Self::InvalidHandle => "ERR_INVALID_HANDLE",
            Self::EndOfObject => "ERR_END_OF_OBJECT",
            Self::NoChange => "ERR_NO_CHANGE",
            Self::InvalidInterface => "ERR_INVALID_INTERFACE",
            Self::NotSupported => "ERR_NOT_SUPPORTED",
            Self::NoAccessRights => "ERR_NO_ACCESS_RIGHTS",
            Self::OutOfLimits => "ERR_OUT_OF_LIMITS",
            Self::EntriesRemaining => "ERR_ENTRIES_REMAINING",
            Self::InvalidSessionId => "ERR_INVALID_SESSION_ID",
            Self::Exception => "ERR_EXCEPTION",
            Self::SignatureMismatch => "ERR_SIGNATURE_MISMATCH",
            Self::VersionMismatch => "ERR_VERSION_MISMATCH",
            Self::TypeMismatch => "ERR_TYPE_MISMATCH",
            Self::IdMismatch => "ERR_ID_MISMATCH",
            Self::NoConsistency => "ERR_NO_CONSISTENCY",
            Self::NoCommCycle => "ERR_NO_COMM_CYCLE",
            Self::DontSuspendTask => "ERR_DONT_SUSPEND_TASK",
            Self::MemoryLockFailed => "ERR_MEMORY_LOCK_FAILED",
            Self::LicenseMissing => "ERR_LICENSE_MISSING",
            Self::OperationDenied => "ERR_OPERATION_DENIED",
            Self::Device => "ERR_DEVICE",
            Self::DiskFull => "ERR_DISK_FULL",
            Self::CrcFailed => "ERR_CRC_FAILED",
            Self::MediaErase => "ERR_MEDIA_ERASE",
            Self::FileError => "ERR_FILE_ERROR",
            Self::NoRetainMemory => "ERR_NO_RETAIN_MEMORY",
            Self::OutOfLimitsMin => "ERR_OUT_OF_LIMITS_MIN",
            Self::OutOfLimitsMax => "ERR_OUT_OF_LIMITS_MAX",
            Self::SizeMismatch => "ERR_SIZE_MISMATCH",
            Self::CallAgain => "ERR_CALL_AGAIN",
            Self::NothingToDo => "ERR_NOTHING_TO_DO",
            Self::SecurityChecksFailed => "ERR_SECURITY_CHECKS_FAILED",
            Self::InvalidSequence => "ERR_INVALID_SEQUENCE",
            Self::InvalidReference => "ERR_INVALID_REFERENCE",
            Self::ConversionIncomplete => "ERR_CONVERSION_INCOMPLETE",
            Self::TooManyRetries => "ERR_TOO_MANY_RETRIES",
            Self::Alignment => "ERR_ALIGNMENT",
            Self::ChangePassword => "ERR_CHANGE_PASSWORD",
            Self::Reauthenticate => "ERR_REAUTHENTICATE",
            Self::Relogin => "ERR_RELOGIN",
            Self::InvalidUrl => "ERR_INVALID_URL",
            Self::InvalidState => "ERR_INVALID_STATE",
            Self::UserMismatch => "ERR_USER_MISMATCH",
            Self::NotReadyYet => "ERR_NOT_READY_YET",
            Self::ActivateUsermgmt => "ERR_ACTIVATE_USERMGMT",
            Self::NoUsermgmt => "ERR_NO_USERMGMT",
            Self::InvalidEncoding => "ERR_INVALID_ENCODING",
            Self::TargetMismatch => "ERR_TARGET_MISMATCH",
            Self::ClientInRoMode => "ERR_CLIENT_IN_RO_MODE",
            Self::LicenseExceeded => "ERR_LICENSE_EXCEEDED",
            Self::AsyncException => "ERR_ASYNC_EXCEPTION",
            Self::NoSignature => "ERR_NO_SIGNATURE",
            Self::NetFailed => "ERR_NET_FAILED",
            Self::NetNotconnected => "ERR_NET_NOTCONNECTED",
            Self::NetMsgsize => "ERR_NET_MSGSIZE",
            Self::NetNoroute => "ERR_NET_NOROUTE",
            Self::NetTimeout => "ERR_NET_TIMEOUT",
            Self::NetPkginvalid => "ERR_NET_PKGINVALID",
            Self::SvcPkginvalid => "ERR_SVC_PKGINVALID",
            Self::SvcInvalidservice => "ERR_SVC_INVALIDSERVICE",
            Self::SvcVersionMismatch => "ERR_SVC_VERSION_MISMATCH",
            Self::ClntPkginvalid => "ERR_CLNT_PKGINVALID",
            Self::DevsLoginfailed => "ERR_DEVS_LOGINFAILED",
            Self::DevsSessiontimeout => "ERR_DEVS_SESSIONTIMEOUT",
            Self::DevsChannelclosed => "ERR_DEVS_CHANNELCLOSED",
            Self::ChsChinvalid => "ERR_CHS_CHINVALID",
            Self::ChsTimeout => "ERR_CHS_TIMEOUT",
            Self::ChsProtocol => "ERR_CHS_PROTOCOL",
            Self::ChsChecksum => "ERR_CHS_CHECKSUM",
            Self::ChsModehost => "ERR_CHS_MODEHOST",
            Self::ChsModepeer => "ERR_CHS_MODEPEER",
            Self::ChsNumchannels => "ERR_CHS_NUMCHANNELS",
            Self::ChsClosed => "ERR_CHS_CLOSED",
            Self::ChsMessagesize => "ERR_CHS_MESSAGESIZE",
            Self::ChsReqnothandled => "ERR_CHS_REQNOTHANDLED",
            Self::ChsShutdown => "ERR_CHS_SHUTDOWN",
            Self::ChsEncryptionNotReadyYet => "ERR_CHS_ENCRYPTION_NOT_READY_YET",
            Self::ChsNotserver => "ERR_CHS_NOTSERVER",
            Self::ChcChinvalid => "ERR_CHC_CHINVALID",
            Self::ChcTimeout => "ERR_CHC_TIMEOUT",
            Self::ChcProtocol => "ERR_CHC_PROTOCOL",
            Self::ChcChecksum => "ERR_CHC_CHECKSUM",
            Self::ChcModehost => "ERR_CHC_MODEHOST",
            Self::ChcModepeer => "ERR_CHC_MODEPEER",
            Self::ChcNumchannels => "ERR_CHC_NUMCHANNELS",
            Self::ChcClosed => "ERR_CHC_CLOSED",
            Self::ChcMessagesize => "ERR_CHC_MESSAGESIZE",
            Self::ChcNochbuffer => "ERR_CHC_NOCHBUFFER",
            Self::GwInvalidpkg => "ERR_GW_INVALIDPKG",
            Self::GwProtocol => "ERR_GW_PROTOCOL",
            Self::GwVersion => "ERR_GW_VERSION",
            Self::GwNoauthmodule => "ERR_GW_NOAUTHMODULE",
            Self::GwUnknowncmd => "ERR_GW_UNKNOWNCMD",
            Self::GwReqcanceled => "ERR_GW_REQCANCELED",
            Self::GwCancelfailed => "ERR_GW_CANCELFAILED",
            Self::GwInvalidconn => "ERR_GW_INVALIDCONN",
            Self::GwNumconnections => "ERR_GW_NUMCONNECTIONS",
            Self::GwParameterNotSupported => "ERR_GW_PARAMETER_NOT_SUPPORTED",
            Self::GwCommandNotSupported => "ERR_GW_COMMAND_NOT_SUPPORTED",
            Self::GwClientTimeout => "ERR_GW_CLIENT_TIMEOUT",
            Self::GwTimeout => "ERR_GW_TIMEOUT",
            Self::SockNotinitialized => "ERR_SOCK_NOTINITIALIZED",
            Self::SockNotsocket => "ERR_SOCK_NOTSOCKET",
            Self::SockAfunsupported => "ERR_SOCK_AFUNSUPPORTED",
            Self::SockProtounsupported => "ERR_SOCK_PROTOUNSUPPORTED",
            Self::SockNobuffer => "ERR_SOCK_NOBUFFER",
            Self::SockWouldblock => "ERR_SOCK_WOULDBLOCK",
            Self::SockAddrinuse => "ERR_SOCK_ADDRINUSE",
            Self::SockAddrnotavailable => "ERR_SOCK_ADDRNOTAVAILABLE",
            Self::SockConnrefused => "ERR_SOCK_CONNREFUSED",
            Self::SockTimedout => "ERR_SOCK_TIMEDOUT",
            Self::SockHostnotfound => "ERR_SOCK_HOSTNOTFOUND",
            Self::SockHostunreachable => "ERR_SOCK_HOSTUNREACHABLE",
            Self::SockIsconnected => "ERR_SOCK_ISCONNECTED",
            Self::SockNotconnected => "ERR_SOCK_NOTCONNECTED",
            Self::SockShutdown => "ERR_SOCK_SHUTDOWN",
            Self::SockMsgsize => "ERR_SOCK_MSGSIZE",
            Self::SockClosed => "ERR_SOCK_CLOSED",
            Self::L7TagMissing => "ERR_L7_TAG_MISSING",
            Self::L7Unknowncmdgroup => "ERR_L7_UNKNOWNCMDGROUP",
            Self::L7Unknowncmd => "ERR_L7_UNKNOWNCMD",
            Self::L7Incomplete => "ERR_L7_INCOMPLETE",
            Self::L7Protocolmismatch => "ERR_L7_PROTOCOLMISMATCH",
            Self::BtagTagoverlap => "ERR_BTAG_TAGOVERLAP",
            Self::BtagBufferoverrun => "ERR_BTAG_BUFFEROVERRUN",
            Self::BtagMaxnestingdepth => "ERR_BTAG_MAXNESTINGDEPTH",
            Self::BtagNotag => "ERR_BTAG_NOTAG",
            Self::BtagNodatatag => "ERR_BTAG_NODATATAG",
            Self::BtagNocontainertag => "ERR_BTAG_NOCONTAINERTAG",
            Self::BtagNottoplevel => "ERR_BTAG_NOTTOPLEVEL",
            Self::BtagAlignment => "ERR_BTAG_ALIGNMENT",
            Self::AppExists => "ERR_APP_EXISTS",
            Self::AppNotExist => "ERR_APP_NOT_EXIST",
            Self::AppInvalidSessionid => "ERR_APP_INVALID_SESSIONID",
            Self::AppInvalidDataid => "ERR_APP_INVALID_DATAID",
            Self::AppNotLoaded => "ERR_APP_NOT_LOADED",
            Self::AppNoSessionid => "ERR_APP_NO_SESSIONID",
            Self::AppUnresolvedReference => "ERR_APP_UNRESOLVED_REFERENCE",
            Self::AppSignatureMismatch => "ERR_APP_SIGNATURE_MISMATCH",
            Self::AppLoadRetainDataFailed => "ERR_APP_LOAD_RETAIN_DATA_FAILED",
            Self::AppVersionMismatch => "ERR_APP_VERSION_MISMATCH",
            Self::AppRetainMismatch => "ERR_APP_RETAIN_MISMATCH",
            Self::AppSinglecycleOnBreakpoint => "ERR_APP_SINGLECYCLE_ON_BREAKPOINT",
            Self::AppCreateBootprojectFailed => "ERR_APP_CREATE_BOOTPROJECT_FAILED",
            Self::AppBpConditionTooComplex => "ERR_APP_BP_CONDITION_TOO_COMPLEX",
            Self::AppBpBreakpointNotSet => "ERR_APP_BP_BREAKPOINT_NOT_SET",
            Self::AppBpInterpCodeTooComplex => "ERR_APP_BP_INTERP_CODE_TOO_COMPLEX",
            Self::AppCreateBootprojectFailedDiskFull => {
                "ERR_APP_CREATE_BOOTPROJECT_FAILED_DISK_FULL"
            }
            Self::AppLoadingCintegrationModules => "ERR_APP_LOADING_CINTEGRATION_MODULES",
            Self::AppDontInitArea => "ERR_APP_DONT_INIT_AREA",
            Self::AppMappedAreaNotFound => "ERR_APP_MAPPED_AREA_NOT_FOUND",
            Self::AppSignatureMissing => "ERR_APP_SIGNATURE_MISSING",
            Self::AppDecryptionFailed => "ERR_APP_DECRYPTION_FAILED",
            Self::AppEncryptionMissing => "ERR_APP_ENCRYPTION_MISSING",
            Self::AppSignatureAndEncryptionMissing => {
                "ERR_APP_SIGNATURE_AND_ENCRYPTION_MISSING"
            }
            Self::AppBpBreakpointNotDeleted => "ERR_APP_BP_BREAKPOINT_NOT_DELETED",
            Self::TlsInternal => "ERR_TLS_INTERNAL",
            Self::TlsRandNotInit => "ERR_TLS_RAND_NOT_INIT",
            Self::TlsInvalidSockettype => "ERR_TLS_INVALID_SOCKETTYPE",
            Self::TlsAlreadyStarted => "ERR_TLS_ALREADY_STARTED",
            Self::TlsConnectionClosed => "ERR_TLS_CONNECTION_CLOSED",
            Self::TlsRetryOperation => "ERR_TLS_RETRY_OPERATION",
            Self::TlsIoSystem => "ERR_TLS_IO_SYSTEM",
            Self::TlsWantRead => "ERR_TLS_WANT_READ",
            Self::TlsCertInvalid => "ERR_TLS_CERT_INVALID",
            Self::TlsCertSelfsigned => "ERR_TLS_CERT_SELFSIGNED",
            Self::TlsCertExpired => "ERR_TLS_CERT_EXPIRED",
            Self::CertUnableToGetIssuerCert => "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT",
            Self::CertUnableToGetCrl => "ERR_CERT_UNABLE_TO_GET_CRL",
            Self::CertUnableToDecryptCertSignature => {
                "ERR_CERT_UNABLE_TO_DECRYPT_CERT_SIGNATURE"
            }
            Self::CertUnableToDecryptCrlSignature => {
                "ERR_CERT_UNABLE_TO_DECRYPT_CRL_SIGNATURE"
            }
            Self::CertUnableToDecodeIssuerPublicKey => {
                "ERR_CERT_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY"
            }
            Self::CertSignatureFailure => "ERR_CERT_SIGNATURE_FAILURE",
            Self::CertCrlSignatureFailure => "ERR_CERT_CRL_SIGNATURE_FAILURE",
            Self::CertNotYetValid => "ERR_CERT_NOT_YET_VALID",
            Self::CertHasExpired => "ERR_CERT_HAS_EXPIRED",
            Self::CertCrlNotYetValid => "ERR_CERT_CRL_NOT_YET_VALID",
            Self::CertCrlHasExpired => "ERR_CERT_CRL_HAS_EXPIRED",
            Self::CertErrorInCertNotBeforeField => {
                "ERR_CERT_ERROR_IN_CERT_NOT_BEFORE_FIELD"
            }
            Self::CertErrorInCertNotAfterField => {
                "ERR_CERT_ERROR_IN_CERT_NOT_AFTER_FIELD"
            }
            Self::CertErrorInCrlLastUpdateField => {
                "ERR_CERT_ERROR_IN_CRL_LAST_UPDATE_FIELD"
            }
            Self::CertErrorInCrlNextUpdateField => {
                "ERR_CERT_ERROR_IN_CRL_NEXT_UPDATE_FIELD"
            }
            Self::CertOutOfMem => "ERR_CERT_OUT_OF_MEM",
            Self::CertDepthZeroSelfSignedCert => "ERR_CERT_DEPTH_ZERO_SELF_SIGNED_CERT",
            Self::CertSelfSignedCertInChain => "ERR_CERT_SELF_SIGNED_CERT_IN_CHAIN",
            Self::CertUnableToGetIssuerCertLocally => {
                "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT_LOCALLY"
            }
            Self::CertUnableToVerifyLeafSignature => {
                "ERR_CERT_UNABLE_TO_VERIFY_LEAF_SIGNATURE"
            }
            Self::CertChainTooLong => "ERR_CERT_CHAIN_TOO_LONG",
            Self::CertRevoked => "ERR_CERT_REVOKED",
            Self::CertInvalidCa => "ERR_CERT_INVALID_CA",
            Self::CertPathLengthExceeded => "ERR_CERT_PATH_LENGTH_EXCEEDED",
            Self::CertInvalidPurpose => "ERR_CERT_INVALID_PURPOSE",
            Self::CertUntrusted => "ERR_CERT_UNTRUSTED",
            Self::CertRejected => "ERR_CERT_REJECTED",
            Self::CertSubjectIssuerMismatch => "ERR_CERT_SUBJECT_ISSUER_MISMATCH",
            Self::CertAkidSkidMismatch => "ERR_CERT_AKID_SKID_MISMATCH",
            Self::CertAkidIssuerSerialMismatch => "ERR_CERT_AKID_ISSUER_SERIAL_MISMATCH",
            Self::CertKeyusageNoCertsign => "ERR_CERT_KEYUSAGE_NO_CERTSIGN",
            Self::CertUnableToGetCrlIssuer => "ERR_CERT_UNABLE_TO_GET_CRL_ISSUER",
            Self::CertUnhandledCriticalExtension => {
                "ERR_CERT_UNHANDLED_CRITICAL_EXTENSION"
            }
            Self::CertKeyusageNoCrlSign => "ERR_CERT_KEYUSAGE_NO_CRL_SIGN",
            Self::CertUnhandledCriticalCrlExtension => {
                "ERR_CERT_UNHANDLED_CRITICAL_CRL_EXTENSION"
            }
            Self::CertInvalidNonCa => "ERR_CERT_INVALID_NON_CA",
            Self::CertProxyPathLengthExceeded => "ERR_CERT_PROXY_PATH_LENGTH_EXCEEDED",
            Self::CertKeyusageNoDigitalSignature => {
                "ERR_CERT_KEYUSAGE_NO_DIGITAL_SIGNATURE"
            }
            Self::CertProxyCertificatesNotAllowed => {
                "ERR_CERT_PROXY_CERTIFICATES_NOT_ALLOWED"
            }
            Self::CertInvalidExtension => "ERR_CERT_INVALID_EXTENSION",
            Self::CertInvalidPolicyExtension => "ERR_CERT_INVALID_POLICY_EXTENSION",
            Self::CertNoExplicitPolicy => "ERR_CERT_NO_EXPLICIT_POLICY",
            Self::CertDifferentCrlScope => "ERR_CERT_DIFFERENT_CRL_SCOPE",
            Self::CertUnsupportedExtensionFeature => {
                "ERR_CERT_UNSUPPORTED_EXTENSION_FEATURE"
            }
            Self::CertUnnestedResource => "ERR_CERT_UNNESTED_RESOURCE",
            Self::CertPermittedViolation => "ERR_CERT_PERMITTED_VIOLATION",
            Self::CertExcludedViolation => "ERR_CERT_EXCLUDED_VIOLATION",
            Self::CertSubtreeMinmax => "ERR_CERT_SUBTREE_MINMAX",
            Self::CertUnsupportedConstraintType => "ERR_CERT_UNSUPPORTED_CONSTRAINT_TYPE",
            Self::CertUnsupportedConstraintSyntax => {
                "ERR_CERT_UNSUPPORTED_CONSTRAINT_SYNTAX"
            }
            Self::CertUnsupportedNameSyntax => "ERR_CERT_UNSUPPORTED_NAME_SYNTAX",
            Self::CertCrlPathValidationError => "ERR_CERT_CRL_PATH_VALIDATION_ERROR",
            Self::CertApplicationVerification => "ERR_CERT_APPLICATION_VERIFICATION",
            Self::CertMissing => "ERR_CERT_MISSING",
            Self::CertUnknownError => "ERR_CERT_UNKNOWN_ERROR",
            Self::P12UnknownError => "ERR_P12_UNKNOWN_ERROR",
            Self::P12MacInvalid => "ERR_P12_MAC_INVALID",
            Self::P12UnsupportedCipher => "ERR_P12_UNSUPPORTED_CIPHER",
            Self::P12UnsupportedDigest => "ERR_P12_UNSUPPORTED_DIGEST",
            Self::P12UnsupportedOption => "ERR_P12_UNSUPPORTED_OPTION",
            Self::P12ParseError => "ERR_P12_PARSE_ERROR",
            Self::P12KeyNomatch => "ERR_P12_KEY_NOMATCH",
            Self::P12NoKey => "ERR_P12_NO_KEY",
            Self::P12NoCert => "ERR_P12_NO_CERT",
            Self::DmsServiceNotRunning => "ERR_DMS_SERVICE_NOT_RUNNING",
            Self::MonitoringErrNestingDepth => "MONITORING_ERR_NESTING_DEPTH",
            Self::MonitoringErrNoConsistency => "MONITORING_ERR_NO_CONSISTENCY",
            Self::MonitoringErrBuffersizeExceeded => "MONITORING_ERR_BUFFERSIZE_EXCEEDED",
            Self::MonitoringErrInvalidIndex => "MONITORING_ERR_INVALID_INDEX",
            Self::MonitoringErrUnknown => "MONITORING_ERR_UNKNOWN",
            Self::FtFileSizeMismatch => "ERR_FT_FILE_SIZE_MISMATCH",
            Self::IecvaraccUnknownNodeType => "ERR_IECVARACC_UNKNOWN_NODE_TYPE",
            Self::IecvaraccNoChildNode => "ERR_IECVARACC_NO_CHILD_NODE",
            Self::IecvaraccConfigChanged => "ERR_IECVARACC_CONFIG_CHANGED",
            Self::IecvaraccSyncConsistencyDenied => {
                "ERR_IECVARACC_SYNC_CONSISTENCY_DENIED"
            }
            Self::EdgeInvalidMessageid => "ERR_EDGE_INVALID_MESSAGEID",
            Self::EdgeInvalidState => "ERR_EDGE_INVALID_STATE",
            Self::EdgeSessionidInvalid => "ERR_EDGE_SESSIONID_INVALID",
            Self::EdgePkginvalid => "ERR_EDGE_PKGINVALID",
            Self::EdgeNobuffer => "ERR_EDGE_NOBUFFER",
            Self::EdgeTimeout => "ERR_EDGE_TIMEOUT",
            Self::EdgeVarMismatch => "ERR_EDGE_VAR_MISMATCH",
            Self::EdgePlcNotConnected => "ERR_EDGE_PLC_NOT_CONNECTED",
            Self::EdgePlcNoCyclicListDefined => "ERR_EDGE_PLC_NO_CYCLIC_LIST_DEFINED",
            Self::EdgeCommFatal => "ERR_EDGE_COMM_FATAL",
            Self::ReduTooTags => "ERR_REDU_TOO_TAGS",
            Self::ReduMemory => "ERR_REDU_MEMORY",
            Self::ReduClientCreationErr => "ERR_REDU_CLIENT_CREATION_ERR",
            Self::DmSigSigMalformedCertificate => "ERR_DM_SIG_SIG_MALFORMED_CERTIFICATE",
            Self::DmSigSigMalformedSignature => "ERR_DM_SIG_SIG_MALFORMED_SIGNATURE",
            Self::DmSigSigMalformedDigest => "ERR_DM_SIG_SIG_MALFORMED_DIGEST",
            Self::DmSigSigMalformedAdditionalAttribute => {
                "ERR_DM_SIG_SIG_MALFORMED_ADDITIONAL_ATTRIBUTE"
            }
            Self::DmSigSigNoSigners => "ERR_DM_SIG_SIG_NO_SIGNERS",
            Self::DmSigSigUnknownSigAlgorithm => "ERR_DM_SIG_SIG_UNKNOWN_SIG_ALGORITHM",
            Self::DmSigSigUnknownAdditionalAttribute => {
                "ERR_DM_SIG_SIG_UNKNOWN_ADDITIONAL_ATTRIBUTE"
            }
            Self::DmSigSigVerifyError => "ERR_DM_SIG_SIG_VERIFY_ERROR",
            Self::DmSigSigDidNotVerify => "ERR_DM_SIG_SIG_DID_NOT_VERIFY",
            Self::DmSigSigNoSignatures => "ERR_DM_SIG_SIG_NO_SIGNATURES",
            Self::DmSigSigNoSupportedSignatures => {
                "ERR_DM_SIG_SIG_NO_SUPPORTED_SIGNATURES"
            }
            Self::DmSigSigNoCertificates => "ERR_DM_SIG_SIG_NO_CERTIFICATES",
            Self::DmSigSigPublicKeyMismatchBetweenCertificateAndSignaturesRecord => {
                "ERR_DM_SIG_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD"
            }
            Self::DmSigSigSigAlgMismatchBetweenSignaturesAndDigestsRecords => {
                "ERR_DM_SIG_SIG_SIG_ALG_MISMATCH_BETWEEN_SIGNATURES_AND_DIGESTS_RECORDS"
            }
            Self::DmSigSigCfaDigestDidNotVerify => {
                "ERR_DM_SIG_SIG_CFA_DIGEST_DID_NOT_VERIFY"
            }
            Self::DmSigCfaSigBlockUnknownEntryId => {
                "ERR_DM_SIG_CFA_SIG_BLOCK_UNKNOWN_ENTRY_ID"
            }
            Self::OemStart => "ERR_OEM_START",
            Self::OemEnd => "ERR_OEM_END",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ERR_OK" => Some(Self::Ok),
            "ERR_FAILED" => Some(Self::Failed),
            "ERR_PARAMETER" => Some(Self::Parameter),
            "ERR_NOTINITIALIZED" => Some(Self::Notinitialized),
            "ERR_VERSION" => Some(Self::Version),
            "ERR_TIMEOUT" => Some(Self::Timeout),
            "ERR_PENDING" => Some(Self::Pending),
            "ERR_NUMPENDING" => Some(Self::Numpending),
            "ERR_NOTIMPLEMENTED" => Some(Self::Notimplemented),
            "ERR_INVALIDID" => Some(Self::Invalidid),
            "ERR_OVERFLOW" => Some(Self::Overflow),
            "ERR_BUFFERSIZE" => Some(Self::Buffersize),
            "ERR_NO_OBJECT" => Some(Self::NoObject),
            "ERR_NOMEMORY" => Some(Self::Nomemory),
            "ERR_DUPLICATE" => Some(Self::Duplicate),
            "ERR_MEMORY_OVERWRITE" => Some(Self::MemoryOverwrite),
            "ERR_INVALID_HANDLE" => Some(Self::InvalidHandle),
            "ERR_END_OF_OBJECT" => Some(Self::EndOfObject),
            "ERR_NO_CHANGE" => Some(Self::NoChange),
            "ERR_INVALID_INTERFACE" => Some(Self::InvalidInterface),
            "ERR_NOT_SUPPORTED" => Some(Self::NotSupported),
            "ERR_NO_ACCESS_RIGHTS" => Some(Self::NoAccessRights),
            "ERR_OUT_OF_LIMITS" => Some(Self::OutOfLimits),
            "ERR_ENTRIES_REMAINING" => Some(Self::EntriesRemaining),
            "ERR_INVALID_SESSION_ID" => Some(Self::InvalidSessionId),
            "ERR_EXCEPTION" => Some(Self::Exception),
            "ERR_SIGNATURE_MISMATCH" => Some(Self::SignatureMismatch),
            "ERR_VERSION_MISMATCH" => Some(Self::VersionMismatch),
            "ERR_TYPE_MISMATCH" => Some(Self::TypeMismatch),
            "ERR_ID_MISMATCH" => Some(Self::IdMismatch),
            "ERR_NO_CONSISTENCY" => Some(Self::NoConsistency),
            "ERR_NO_COMM_CYCLE" => Some(Self::NoCommCycle),
            "ERR_DONT_SUSPEND_TASK" => Some(Self::DontSuspendTask),
            "ERR_MEMORY_LOCK_FAILED" => Some(Self::MemoryLockFailed),
            "ERR_LICENSE_MISSING" => Some(Self::LicenseMissing),
            "ERR_OPERATION_DENIED" => Some(Self::OperationDenied),
            "ERR_DEVICE" => Some(Self::Device),
            "ERR_DISK_FULL" => Some(Self::DiskFull),
            "ERR_CRC_FAILED" => Some(Self::CrcFailed),
            "ERR_MEDIA_ERASE" => Some(Self::MediaErase),
            "ERR_FILE_ERROR" => Some(Self::FileError),
            "ERR_NO_RETAIN_MEMORY" => Some(Self::NoRetainMemory),
            "ERR_OUT_OF_LIMITS_MIN" => Some(Self::OutOfLimitsMin),
            "ERR_OUT_OF_LIMITS_MAX" => Some(Self::OutOfLimitsMax),
            "ERR_SIZE_MISMATCH" => Some(Self::SizeMismatch),
            "ERR_CALL_AGAIN" => Some(Self::CallAgain),
            "ERR_NOTHING_TO_DO" => Some(Self::NothingToDo),
            "ERR_SECURITY_CHECKS_FAILED" => Some(Self::SecurityChecksFailed),
            "ERR_INVALID_SEQUENCE" => Some(Self::InvalidSequence),
            "ERR_INVALID_REFERENCE" => Some(Self::InvalidReference),
            "ERR_CONVERSION_INCOMPLETE" => Some(Self::ConversionIncomplete),
            "ERR_TOO_MANY_RETRIES" => Some(Self::TooManyRetries),
            "ERR_ALIGNMENT" => Some(Self::Alignment),
            "ERR_CHANGE_PASSWORD" => Some(Self::ChangePassword),
            "ERR_REAUTHENTICATE" => Some(Self::Reauthenticate),
            "ERR_RELOGIN" => Some(Self::Relogin),
            "ERR_INVALID_URL" => Some(Self::InvalidUrl),
            "ERR_INVALID_STATE" => Some(Self::InvalidState),
            "ERR_USER_MISMATCH" => Some(Self::UserMismatch),
            "ERR_NOT_READY_YET" => Some(Self::NotReadyYet),
            "ERR_ACTIVATE_USERMGMT" => Some(Self::ActivateUsermgmt),
            "ERR_NO_USERMGMT" => Some(Self::NoUsermgmt),
            "ERR_INVALID_ENCODING" => Some(Self::InvalidEncoding),
            "ERR_TARGET_MISMATCH" => Some(Self::TargetMismatch),
            "ERR_CLIENT_IN_RO_MODE" => Some(Self::ClientInRoMode),
            "ERR_LICENSE_EXCEEDED" => Some(Self::LicenseExceeded),
            "ERR_ASYNC_EXCEPTION" => Some(Self::AsyncException),
            "ERR_NO_SIGNATURE" => Some(Self::NoSignature),
            "ERR_NET_FAILED" => Some(Self::NetFailed),
            "ERR_NET_NOTCONNECTED" => Some(Self::NetNotconnected),
            "ERR_NET_MSGSIZE" => Some(Self::NetMsgsize),
            "ERR_NET_NOROUTE" => Some(Self::NetNoroute),
            "ERR_NET_TIMEOUT" => Some(Self::NetTimeout),
            "ERR_NET_PKGINVALID" => Some(Self::NetPkginvalid),
            "ERR_SVC_PKGINVALID" => Some(Self::SvcPkginvalid),
            "ERR_SVC_INVALIDSERVICE" => Some(Self::SvcInvalidservice),
            "ERR_SVC_VERSION_MISMATCH" => Some(Self::SvcVersionMismatch),
            "ERR_CLNT_PKGINVALID" => Some(Self::ClntPkginvalid),
            "ERR_DEVS_LOGINFAILED" => Some(Self::DevsLoginfailed),
            "ERR_DEVS_SESSIONTIMEOUT" => Some(Self::DevsSessiontimeout),
            "ERR_DEVS_CHANNELCLOSED" => Some(Self::DevsChannelclosed),
            "ERR_CHS_CHINVALID" => Some(Self::ChsChinvalid),
            "ERR_CHS_TIMEOUT" => Some(Self::ChsTimeout),
            "ERR_CHS_PROTOCOL" => Some(Self::ChsProtocol),
            "ERR_CHS_CHECKSUM" => Some(Self::ChsChecksum),
            "ERR_CHS_MODEHOST" => Some(Self::ChsModehost),
            "ERR_CHS_MODEPEER" => Some(Self::ChsModepeer),
            "ERR_CHS_NUMCHANNELS" => Some(Self::ChsNumchannels),
            "ERR_CHS_CLOSED" => Some(Self::ChsClosed),
            "ERR_CHS_MESSAGESIZE" => Some(Self::ChsMessagesize),
            "ERR_CHS_REQNOTHANDLED" => Some(Self::ChsReqnothandled),
            "ERR_CHS_SHUTDOWN" => Some(Self::ChsShutdown),
            "ERR_CHS_ENCRYPTION_NOT_READY_YET" => Some(Self::ChsEncryptionNotReadyYet),
            "ERR_CHS_NOTSERVER" => Some(Self::ChsNotserver),
            "ERR_CHC_CHINVALID" => Some(Self::ChcChinvalid),
            "ERR_CHC_TIMEOUT" => Some(Self::ChcTimeout),
            "ERR_CHC_PROTOCOL" => Some(Self::ChcProtocol),
            "ERR_CHC_CHECKSUM" => Some(Self::ChcChecksum),
            "ERR_CHC_MODEHOST" => Some(Self::ChcModehost),
            "ERR_CHC_MODEPEER" => Some(Self::ChcModepeer),
            "ERR_CHC_NUMCHANNELS" => Some(Self::ChcNumchannels),
            "ERR_CHC_CLOSED" => Some(Self::ChcClosed),
            "ERR_CHC_MESSAGESIZE" => Some(Self::ChcMessagesize),
            "ERR_CHC_NOCHBUFFER" => Some(Self::ChcNochbuffer),
            "ERR_GW_INVALIDPKG" => Some(Self::GwInvalidpkg),
            "ERR_GW_PROTOCOL" => Some(Self::GwProtocol),
            "ERR_GW_VERSION" => Some(Self::GwVersion),
            "ERR_GW_NOAUTHMODULE" => Some(Self::GwNoauthmodule),
            "ERR_GW_UNKNOWNCMD" => Some(Self::GwUnknowncmd),
            "ERR_GW_REQCANCELED" => Some(Self::GwReqcanceled),
            "ERR_GW_CANCELFAILED" => Some(Self::GwCancelfailed),
            "ERR_GW_INVALIDCONN" => Some(Self::GwInvalidconn),
            "ERR_GW_NUMCONNECTIONS" => Some(Self::GwNumconnections),
            "ERR_GW_PARAMETER_NOT_SUPPORTED" => Some(Self::GwParameterNotSupported),
            "ERR_GW_COMMAND_NOT_SUPPORTED" => Some(Self::GwCommandNotSupported),
            "ERR_GW_CLIENT_TIMEOUT" => Some(Self::GwClientTimeout),
            "ERR_GW_TIMEOUT" => Some(Self::GwTimeout),
            "ERR_SOCK_NOTINITIALIZED" => Some(Self::SockNotinitialized),
            "ERR_SOCK_NOTSOCKET" => Some(Self::SockNotsocket),
            "ERR_SOCK_AFUNSUPPORTED" => Some(Self::SockAfunsupported),
            "ERR_SOCK_PROTOUNSUPPORTED" => Some(Self::SockProtounsupported),
            "ERR_SOCK_NOBUFFER" => Some(Self::SockNobuffer),
            "ERR_SOCK_WOULDBLOCK" => Some(Self::SockWouldblock),
            "ERR_SOCK_ADDRINUSE" => Some(Self::SockAddrinuse),
            "ERR_SOCK_ADDRNOTAVAILABLE" => Some(Self::SockAddrnotavailable),
            "ERR_SOCK_CONNREFUSED" => Some(Self::SockConnrefused),
            "ERR_SOCK_TIMEDOUT" => Some(Self::SockTimedout),
            "ERR_SOCK_HOSTNOTFOUND" => Some(Self::SockHostnotfound),
            "ERR_SOCK_HOSTUNREACHABLE" => Some(Self::SockHostunreachable),
            "ERR_SOCK_ISCONNECTED" => Some(Self::SockIsconnected),
            "ERR_SOCK_NOTCONNECTED" => Some(Self::SockNotconnected),
            "ERR_SOCK_SHUTDOWN" => Some(Self::SockShutdown),
            "ERR_SOCK_MSGSIZE" => Some(Self::SockMsgsize),
            "ERR_SOCK_CLOSED" => Some(Self::SockClosed),
            "ERR_L7_TAG_MISSING" => Some(Self::L7TagMissing),
            "ERR_L7_UNKNOWNCMDGROUP" => Some(Self::L7Unknowncmdgroup),
            "ERR_L7_UNKNOWNCMD" => Some(Self::L7Unknowncmd),
            "ERR_L7_INCOMPLETE" => Some(Self::L7Incomplete),
            "ERR_L7_PROTOCOLMISMATCH" => Some(Self::L7Protocolmismatch),
            "ERR_BTAG_TAGOVERLAP" => Some(Self::BtagTagoverlap),
            "ERR_BTAG_BUFFEROVERRUN" => Some(Self::BtagBufferoverrun),
            "ERR_BTAG_MAXNESTINGDEPTH" => Some(Self::BtagMaxnestingdepth),
            "ERR_BTAG_NOTAG" => Some(Self::BtagNotag),
            "ERR_BTAG_NODATATAG" => Some(Self::BtagNodatatag),
            "ERR_BTAG_NOCONTAINERTAG" => Some(Self::BtagNocontainertag),
            "ERR_BTAG_NOTTOPLEVEL" => Some(Self::BtagNottoplevel),
            "ERR_BTAG_ALIGNMENT" => Some(Self::BtagAlignment),
            "ERR_APP_EXISTS" => Some(Self::AppExists),
            "ERR_APP_NOT_EXIST" => Some(Self::AppNotExist),
            "ERR_APP_INVALID_SESSIONID" => Some(Self::AppInvalidSessionid),
            "ERR_APP_INVALID_DATAID" => Some(Self::AppInvalidDataid),
            "ERR_APP_NOT_LOADED" => Some(Self::AppNotLoaded),
            "ERR_APP_NO_SESSIONID" => Some(Self::AppNoSessionid),
            "ERR_APP_UNRESOLVED_REFERENCE" => Some(Self::AppUnresolvedReference),
            "ERR_APP_SIGNATURE_MISMATCH" => Some(Self::AppSignatureMismatch),
            "ERR_APP_LOAD_RETAIN_DATA_FAILED" => Some(Self::AppLoadRetainDataFailed),
            "ERR_APP_VERSION_MISMATCH" => Some(Self::AppVersionMismatch),
            "ERR_APP_RETAIN_MISMATCH" => Some(Self::AppRetainMismatch),
            "ERR_APP_SINGLECYCLE_ON_BREAKPOINT" => Some(Self::AppSinglecycleOnBreakpoint),
            "ERR_APP_CREATE_BOOTPROJECT_FAILED" => Some(Self::AppCreateBootprojectFailed),
            "ERR_APP_BP_CONDITION_TOO_COMPLEX" => Some(Self::AppBpConditionTooComplex),
            "ERR_APP_BP_BREAKPOINT_NOT_SET" => Some(Self::AppBpBreakpointNotSet),
            "ERR_APP_BP_INTERP_CODE_TOO_COMPLEX" => Some(Self::AppBpInterpCodeTooComplex),
            "ERR_APP_CREATE_BOOTPROJECT_FAILED_DISK_FULL" => {
                Some(Self::AppCreateBootprojectFailedDiskFull)
            }
            "ERR_APP_LOADING_CINTEGRATION_MODULES" => {
                Some(Self::AppLoadingCintegrationModules)
            }
            "ERR_APP_DONT_INIT_AREA" => Some(Self::AppDontInitArea),
            "ERR_APP_MAPPED_AREA_NOT_FOUND" => Some(Self::AppMappedAreaNotFound),
            "ERR_APP_SIGNATURE_MISSING" => Some(Self::AppSignatureMissing),
            "ERR_APP_DECRYPTION_FAILED" => Some(Self::AppDecryptionFailed),
            "ERR_APP_ENCRYPTION_MISSING" => Some(Self::AppEncryptionMissing),
            "ERR_APP_SIGNATURE_AND_ENCRYPTION_MISSING" => {
                Some(Self::AppSignatureAndEncryptionMissing)
            }
            "ERR_APP_BP_BREAKPOINT_NOT_DELETED" => Some(Self::AppBpBreakpointNotDeleted),
            "ERR_TLS_INTERNAL" => Some(Self::TlsInternal),
            "ERR_TLS_RAND_NOT_INIT" => Some(Self::TlsRandNotInit),
            "ERR_TLS_INVALID_SOCKETTYPE" => Some(Self::TlsInvalidSockettype),
            "ERR_TLS_ALREADY_STARTED" => Some(Self::TlsAlreadyStarted),
            "ERR_TLS_CONNECTION_CLOSED" => Some(Self::TlsConnectionClosed),
            "ERR_TLS_RETRY_OPERATION" => Some(Self::TlsRetryOperation),
            "ERR_TLS_IO_SYSTEM" => Some(Self::TlsIoSystem),
            "ERR_TLS_WANT_READ" => Some(Self::TlsWantRead),
            "ERR_TLS_CERT_INVALID" => Some(Self::TlsCertInvalid),
            "ERR_TLS_CERT_SELFSIGNED" => Some(Self::TlsCertSelfsigned),
            "ERR_TLS_CERT_EXPIRED" => Some(Self::TlsCertExpired),
            "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT" => Some(Self::CertUnableToGetIssuerCert),
            "ERR_CERT_UNABLE_TO_GET_CRL" => Some(Self::CertUnableToGetCrl),
            "ERR_CERT_UNABLE_TO_DECRYPT_CERT_SIGNATURE" => {
                Some(Self::CertUnableToDecryptCertSignature)
            }
            "ERR_CERT_UNABLE_TO_DECRYPT_CRL_SIGNATURE" => {
                Some(Self::CertUnableToDecryptCrlSignature)
            }
            "ERR_CERT_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY" => {
                Some(Self::CertUnableToDecodeIssuerPublicKey)
            }
            "ERR_CERT_SIGNATURE_FAILURE" => Some(Self::CertSignatureFailure),
            "ERR_CERT_CRL_SIGNATURE_FAILURE" => Some(Self::CertCrlSignatureFailure),
            "ERR_CERT_NOT_YET_VALID" => Some(Self::CertNotYetValid),
            "ERR_CERT_HAS_EXPIRED" => Some(Self::CertHasExpired),
            "ERR_CERT_CRL_NOT_YET_VALID" => Some(Self::CertCrlNotYetValid),
            "ERR_CERT_CRL_HAS_EXPIRED" => Some(Self::CertCrlHasExpired),
            "ERR_CERT_ERROR_IN_CERT_NOT_BEFORE_FIELD" => {
                Some(Self::CertErrorInCertNotBeforeField)
            }
            "ERR_CERT_ERROR_IN_CERT_NOT_AFTER_FIELD" => {
                Some(Self::CertErrorInCertNotAfterField)
            }
            "ERR_CERT_ERROR_IN_CRL_LAST_UPDATE_FIELD" => {
                Some(Self::CertErrorInCrlLastUpdateField)
            }
            "ERR_CERT_ERROR_IN_CRL_NEXT_UPDATE_FIELD" => {
                Some(Self::CertErrorInCrlNextUpdateField)
            }
            "ERR_CERT_OUT_OF_MEM" => Some(Self::CertOutOfMem),
            "ERR_CERT_DEPTH_ZERO_SELF_SIGNED_CERT" => {
                Some(Self::CertDepthZeroSelfSignedCert)
            }
            "ERR_CERT_SELF_SIGNED_CERT_IN_CHAIN" => Some(Self::CertSelfSignedCertInChain),
            "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT_LOCALLY" => {
                Some(Self::CertUnableToGetIssuerCertLocally)
            }
            "ERR_CERT_UNABLE_TO_VERIFY_LEAF_SIGNATURE" => {
                Some(Self::CertUnableToVerifyLeafSignature)
            }
            "ERR_CERT_CHAIN_TOO_LONG" => Some(Self::CertChainTooLong),
            "ERR_CERT_REVOKED" => Some(Self::CertRevoked),
            "ERR_CERT_INVALID_CA" => Some(Self::CertInvalidCa),
            "ERR_CERT_PATH_LENGTH_EXCEEDED" => Some(Self::CertPathLengthExceeded),
            "ERR_CERT_INVALID_PURPOSE" => Some(Self::CertInvalidPurpose),
            "ERR_CERT_UNTRUSTED" => Some(Self::CertUntrusted),
            "ERR_CERT_REJECTED" => Some(Self::CertRejected),
            "ERR_CERT_SUBJECT_ISSUER_MISMATCH" => Some(Self::CertSubjectIssuerMismatch),
            "ERR_CERT_AKID_SKID_MISMATCH" => Some(Self::CertAkidSkidMismatch),
            "ERR_CERT_AKID_ISSUER_SERIAL_MISMATCH" => {
                Some(Self::CertAkidIssuerSerialMismatch)
            }
            "ERR_CERT_KEYUSAGE_NO_CERTSIGN" => Some(Self::CertKeyusageNoCertsign),
            "ERR_CERT_UNABLE_TO_GET_CRL_ISSUER" => Some(Self::CertUnableToGetCrlIssuer),
            "ERR_CERT_UNHANDLED_CRITICAL_EXTENSION" => {
                Some(Self::CertUnhandledCriticalExtension)
            }
            "ERR_CERT_KEYUSAGE_NO_CRL_SIGN" => Some(Self::CertKeyusageNoCrlSign),
            "ERR_CERT_UNHANDLED_CRITICAL_CRL_EXTENSION" => {
                Some(Self::CertUnhandledCriticalCrlExtension)
            }
            "ERR_CERT_INVALID_NON_CA" => Some(Self::CertInvalidNonCa),
            "ERR_CERT_PROXY_PATH_LENGTH_EXCEEDED" => {
                Some(Self::CertProxyPathLengthExceeded)
            }
            "ERR_CERT_KEYUSAGE_NO_DIGITAL_SIGNATURE" => {
                Some(Self::CertKeyusageNoDigitalSignature)
            }
            "ERR_CERT_PROXY_CERTIFICATES_NOT_ALLOWED" => {
                Some(Self::CertProxyCertificatesNotAllowed)
            }
            "ERR_CERT_INVALID_EXTENSION" => Some(Self::CertInvalidExtension),
            "ERR_CERT_INVALID_POLICY_EXTENSION" => Some(Self::CertInvalidPolicyExtension),
            "ERR_CERT_NO_EXPLICIT_POLICY" => Some(Self::CertNoExplicitPolicy),
            "ERR_CERT_DIFFERENT_CRL_SCOPE" => Some(Self::CertDifferentCrlScope),
            "ERR_CERT_UNSUPPORTED_EXTENSION_FEATURE" => {
                Some(Self::CertUnsupportedExtensionFeature)
            }
            "ERR_CERT_UNNESTED_RESOURCE" => Some(Self::CertUnnestedResource),
            "ERR_CERT_PERMITTED_VIOLATION" => Some(Self::CertPermittedViolation),
            "ERR_CERT_EXCLUDED_VIOLATION" => Some(Self::CertExcludedViolation),
            "ERR_CERT_SUBTREE_MINMAX" => Some(Self::CertSubtreeMinmax),
            "ERR_CERT_UNSUPPORTED_CONSTRAINT_TYPE" => {
                Some(Self::CertUnsupportedConstraintType)
            }
            "ERR_CERT_UNSUPPORTED_CONSTRAINT_SYNTAX" => {
                Some(Self::CertUnsupportedConstraintSyntax)
            }
            "ERR_CERT_UNSUPPORTED_NAME_SYNTAX" => Some(Self::CertUnsupportedNameSyntax),
            "ERR_CERT_CRL_PATH_VALIDATION_ERROR" => {
                Some(Self::CertCrlPathValidationError)
            }
            "ERR_CERT_APPLICATION_VERIFICATION" => {
                Some(Self::CertApplicationVerification)
            }
            "ERR_CERT_MISSING" => Some(Self::CertMissing),
            "ERR_CERT_UNKNOWN_ERROR" => Some(Self::CertUnknownError),
            "ERR_P12_UNKNOWN_ERROR" => Some(Self::P12UnknownError),
            "ERR_P12_MAC_INVALID" => Some(Self::P12MacInvalid),
            "ERR_P12_UNSUPPORTED_CIPHER" => Some(Self::P12UnsupportedCipher),
            "ERR_P12_UNSUPPORTED_DIGEST" => Some(Self::P12UnsupportedDigest),
            "ERR_P12_UNSUPPORTED_OPTION" => Some(Self::P12UnsupportedOption),
            "ERR_P12_PARSE_ERROR" => Some(Self::P12ParseError),
            "ERR_P12_KEY_NOMATCH" => Some(Self::P12KeyNomatch),
            "ERR_P12_NO_KEY" => Some(Self::P12NoKey),
            "ERR_P12_NO_CERT" => Some(Self::P12NoCert),
            "ERR_DMS_SERVICE_NOT_RUNNING" => Some(Self::DmsServiceNotRunning),
            "MONITORING_ERR_NESTING_DEPTH" => Some(Self::MonitoringErrNestingDepth),
            "MONITORING_ERR_NO_CONSISTENCY" => Some(Self::MonitoringErrNoConsistency),
            "MONITORING_ERR_BUFFERSIZE_EXCEEDED" => {
                Some(Self::MonitoringErrBuffersizeExceeded)
            }
            "MONITORING_ERR_INVALID_INDEX" => Some(Self::MonitoringErrInvalidIndex),
            "MONITORING_ERR_UNKNOWN" => Some(Self::MonitoringErrUnknown),
            "ERR_FT_FILE_SIZE_MISMATCH" => Some(Self::FtFileSizeMismatch),
            "ERR_IECVARACC_UNKNOWN_NODE_TYPE" => Some(Self::IecvaraccUnknownNodeType),
            "ERR_IECVARACC_NO_CHILD_NODE" => Some(Self::IecvaraccNoChildNode),
            "ERR_IECVARACC_CONFIG_CHANGED" => Some(Self::IecvaraccConfigChanged),
            "ERR_IECVARACC_SYNC_CONSISTENCY_DENIED" => {
                Some(Self::IecvaraccSyncConsistencyDenied)
            }
            "ERR_EDGE_INVALID_MESSAGEID" => Some(Self::EdgeInvalidMessageid),
            "ERR_EDGE_INVALID_STATE" => Some(Self::EdgeInvalidState),
            "ERR_EDGE_SESSIONID_INVALID" => Some(Self::EdgeSessionidInvalid),
            "ERR_EDGE_PKGINVALID" => Some(Self::EdgePkginvalid),
            "ERR_EDGE_NOBUFFER" => Some(Self::EdgeNobuffer),
            "ERR_EDGE_TIMEOUT" => Some(Self::EdgeTimeout),
            "ERR_EDGE_VAR_MISMATCH" => Some(Self::EdgeVarMismatch),
            "ERR_EDGE_PLC_NOT_CONNECTED" => Some(Self::EdgePlcNotConnected),
            "ERR_EDGE_PLC_NO_CYCLIC_LIST_DEFINED" => {
                Some(Self::EdgePlcNoCyclicListDefined)
            }
            "ERR_EDGE_COMM_FATAL" => Some(Self::EdgeCommFatal),
            "ERR_REDU_TOO_TAGS" => Some(Self::ReduTooTags),
            "ERR_REDU_MEMORY" => Some(Self::ReduMemory),
            "ERR_REDU_CLIENT_CREATION_ERR" => Some(Self::ReduClientCreationErr),
            "ERR_DM_SIG_SIG_MALFORMED_CERTIFICATE" => {
                Some(Self::DmSigSigMalformedCertificate)
            }
            "ERR_DM_SIG_SIG_MALFORMED_SIGNATURE" => {
                Some(Self::DmSigSigMalformedSignature)
            }
            "ERR_DM_SIG_SIG_MALFORMED_DIGEST" => Some(Self::DmSigSigMalformedDigest),
            "ERR_DM_SIG_SIG_MALFORMED_ADDITIONAL_ATTRIBUTE" => {
                Some(Self::DmSigSigMalformedAdditionalAttribute)
            }
            "ERR_DM_SIG_SIG_NO_SIGNERS" => Some(Self::DmSigSigNoSigners),
            "ERR_DM_SIG_SIG_UNKNOWN_SIG_ALGORITHM" => {
                Some(Self::DmSigSigUnknownSigAlgorithm)
            }
            "ERR_DM_SIG_SIG_UNKNOWN_ADDITIONAL_ATTRIBUTE" => {
                Some(Self::DmSigSigUnknownAdditionalAttribute)
            }
            "ERR_DM_SIG_SIG_VERIFY_ERROR" => Some(Self::DmSigSigVerifyError),
            "ERR_DM_SIG_SIG_DID_NOT_VERIFY" => Some(Self::DmSigSigDidNotVerify),
            "ERR_DM_SIG_SIG_NO_SIGNATURES" => Some(Self::DmSigSigNoSignatures),
            "ERR_DM_SIG_SIG_NO_SUPPORTED_SIGNATURES" => {
                Some(Self::DmSigSigNoSupportedSignatures)
            }
            "ERR_DM_SIG_SIG_NO_CERTIFICATES" => Some(Self::DmSigSigNoCertificates),
            "ERR_DM_SIG_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD" => {
                Some(
                    Self::DmSigSigPublicKeyMismatchBetweenCertificateAndSignaturesRecord,
                )
            }
            "ERR_DM_SIG_SIG_SIG_ALG_MISMATCH_BETWEEN_SIGNATURES_AND_DIGESTS_RECORDS" => {
                Some(Self::DmSigSigSigAlgMismatchBetweenSignaturesAndDigestsRecords)
            }
            "ERR_DM_SIG_SIG_CFA_DIGEST_DID_NOT_VERIFY" => {
                Some(Self::DmSigSigCfaDigestDidNotVerify)
            }
            "ERR_DM_SIG_CFA_SIG_BLOCK_UNKNOWN_ENTRY_ID" => {
                Some(Self::DmSigCfaSigBlockUnknownEntryId)
            }
            "ERR_OEM_START" => Some(Self::OemStart),
            "ERR_OEM_END" => Some(Self::OemEnd),
            _ => None,
        }
    }
}