global_errors/protos/
errors.rs

1// This file is @generated by prost-build.
2#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3#[repr(i32)]
4pub enum Err {
5    /// Common error codes
6    /// (range: =0; // 0x0000 - =0; // 0x00FF)
7    ///
8    /// 0x0000
9    Ok = 0,
10    /// 0x0001  /* General error - to be used only for internal errors */
11    Failed = 1,
12    /// 0x0002
13    Parameter = 2,
14    /// 0x0003  /* Function cannot be executed, since component has not been initialized yet. It may work later, though */
15    Notinitialized = 3,
16    /// 0x0004  /* Version conflict */
17    Version = 4,
18    /// 0x0005  /* Operation timed out */
19    Timeout = 5,
20    /// 0x000A  /* For async-calls: call not complete, yet */
21    Pending = 10,
22    /// 0x000B  /* To many pending calls. Try later */
23    Numpending = 11,
24    /// 0x000C  /* The function is not implemented */
25    Notimplemented = 12,
26    /// 0x000D  /* No object with the provided id found */
27    Invalidid = 13,
28    /// 0x000E  /* Integer overflow */
29    Overflow = 14,
30    /// 0x000F	/* The size of a buffer is to small or invalid */
31    Buffersize = 15,
32    /// 0x0010	/* No object with this specified name available */
33    NoObject = 16,
34    /// 0x0011	/* No heap memory available */
35    Nomemory = 17,
36    /// 0x0012	/* An object with the same name is still available */
37    Duplicate = 18,
38    /// 0x0013	/* Heap memory was written out of bounds! Memory overwrite error */
39    MemoryOverwrite = 19,
40    /// 0x0014	/* Invalid handle to an object */
41    InvalidHandle = 20,
42    /// 0x0015	/* End of object reached */
43    EndOfObject = 21,
44    /// 0x0016	/* No changes done */
45    NoChange = 22,
46    /// 0x0017	/* Invalid or unknown interface */
47    InvalidInterface = 23,
48    /// 0x0018	/* Functionality not supported */
49    NotSupported = 24,
50    /// 0x0019	/* No access rights for this operation */
51    NoAccessRights = 25,
52    /// 0x001A	/* Specified limits of a resource exceeded */
53    OutOfLimits = 26,
54    /// 0x001B	/* Remaining entries that could not be transmitted because of buffer limitation */
55    EntriesRemaining = 27,
56    /// 0x001C	/* Invalid online sessionid */
57    InvalidSessionId = 28,
58    /// 0x001D	/* Exception occurred */
59    Exception = 29,
60    /// 0x001E	/* Signature mismatch of an api function */
61    SignatureMismatch = 30,
62    /// 0x001F	/* Version mismatch */
63    VersionMismatch = 31,
64    /// 0x0020	/* Type mismatch */
65    TypeMismatch = 32,
66    /// 0x0021	/* ID mismatch */
67    IdMismatch = 33,
68    /// 0x0022	/* Consistency error */
69    NoConsistency = 34,
70    /// 0x0023	/* No COMM_CYCLE needed */
71    NoCommCycle = 35,
72    /// 0x0024	/* Do not suspend task after an exception */
73    DontSuspendTask = 36,
74    /// 0x0025	/* Memory cannot be locked in this operation */
75    MemoryLockFailed = 37,
76    /// 0x0026	/* License missing for the runtime */
77    LicenseMissing = 38,
78    /// 0x0027	/* Operation denied */
79    OperationDenied = 39,
80    /// 0x0028	/* Device error */
81    Device = 40,
82    /// 0x0029	/* Disk full */
83    DiskFull = 41,
84    /// 0x0030
85    CrcFailed = 48,
86    /// 0x0031
87    MediaErase = 49,
88    /// 0x0032	/* File error. e.g. cannot open a file for writing because it could be write protected */
89    FileError = 50,
90    /// 0x0033	/* No retain memory available */
91    NoRetainMemory = 51,
92    /// 0x0034	/* Specified minimum-limit of a resource exceeded */
93    OutOfLimitsMin = 52,
94    /// 0x0035	/* Specified maximum-limit of a resource exceeded */
95    OutOfLimitsMax = 53,
96    /// 0x0036	/* Size mismatch */
97    SizeMismatch = 54,
98    /// 0x0037	/* Operation is not yet finished, call function again to proceed */
99    CallAgain = 55,
100    /// 0x0038	/* Operation has nothing to do. No execution. */
101    NothingToDo = 56,
102    /// 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. */
103    SecurityChecksFailed = 57,
104    /// 0x003A
105    InvalidSequence = 58,
106    /// 0x003B	/* Dereferencing an IEC reference in IecVarAccess failed due to invalid destination address, e. G. NULL. */
107    InvalidReference = 59,
108    /// 0x003C /* Conversion of string encodings was not lossless. */
109    ConversionIncomplete = 60,
110    /// 0x003D	/* Too many retries of an action */
111    TooManyRetries = 61,
112    /// 0x003E /* There is an unaligned access on memory detected. */
113    Alignment = 62,
114    /// 0x003F /* The password has to be changed */
115    ChangePassword = 63,
116    /// 0x0040 /* The user has to reauthenticate oneself */
117    Reauthenticate = 64,
118    /// 0x0041 /* The user has to relogin */
119    Relogin = 65,
120    /// 0x0042 /* An URL was not valid. */
121    InvalidUrl = 66,
122    /// 0x0043 /* The component state does not allow to call this function. */
123    InvalidState = 67,
124    /// 0x0044 /* User mismatch */
125    UserMismatch = 68,
126    /// 0x0045 /* The service is not ready yet. Try again later */
127    NotReadyYet = 69,
128    /// 0x0046 /* The user management has to be activated. */
129    ActivateUsermgmt = 70,
130    /// 0x0047 /* A login was done with a user name, but no user management is active. */
131    NoUsermgmt = 71,
132    /// 0x0048 /* A string encoding was not correct. */
133    InvalidEncoding = 72,
134    /// 0x0049 /* Target mismatch detected */
135    TargetMismatch = 73,
136    /// 0x004A /* Client is in readonly mode and has no rights for this service. */
137    ClientInRoMode = 74,
138    /// 0x004B /* License is not sufficient */
139    LicenseExceeded = 75,
140    /// 0x004C /* Exception occured during execution of async service task */
141    AsyncException = 76,
142    /// 0x004D /* Object contains no siganture */
143    NoSignature = 77,
144    /// Getwork errors
145    /// (r0100 - =0; // 0x010F)
146    ///
147    /// 0x0100  /* General failure of a network call */
148    NetFailed = 256,
149    /// 0x0101	/* Connection not established or closed */
150    NetNotconnected = 257,
151    /// 0x0102  /* Message exceeds the maximum message size */
152    NetMsgsize = 258,
153    /// 0x0103  /* No route found */
154    NetNoroute = 259,
155    /// 0x0104  /* Timeout of the network call */
156    NetTimeout = 262,
157    /// 0x0105  /* A network (Layer 3) package is invalid */
158    NetPkginvalid = 261,
159    /// Nervice errors (issued by the server of a network service)
160    /// (x0120 - =0; // 0x012F)
161    ///
162    /// 0x0120  /* The received package is not compliant with the service specification */
163    SvcPkginvalid = 288,
164    /// 0x0121  /* The requested service does not exist */
165    SvcInvalidservice = 289,
166    /// 0x0122  /* The requested service version does not exist */
167    SvcVersionMismatch = 290,
168    /// Nlient errors (issued by the client of a network service)
169    /// (x0140 - =0; // 0x014F)
170    ///
171    /// 0x0140	/* The received package is not compliant with the service specification */
172    ClntPkginvalid = 320,
173    /// Drver errors
174    /// (r0170 - =0; // 0x017F)
175    ///
176    /// 0x0170 /* User login failed */
177    DevsLoginfailed = 368,
178    /// 0x0171 /* Inactive session closed due to timeout */
179    DevsSessiontimeout = 369,
180    /// 0x0172 /* Channel has been closed */
181    DevsChannelclosed = 370,
182    /// Cerver (PLC) errors
183    /// (r0180 - =0; // 0x019F)
184    ///
185    /// 0x0181 /* Channel Id invalid */
186    ChsChinvalid = 385,
187    /// 0x0182 /* Channel closed due to a timeout */
188    ChsTimeout = 386,
189    /// 0x0183 /* Protocol error */
190    ChsProtocol = 387,
191    /// 0x0184 /* Inrecoverable transmission error (checksum) etc. */
192    ChsChecksum = 388,
193    /// 0x0185 /* The server application tried to send a message although the channel is in receive mode */
194    ChsModehost = 389,
195    /// 0x0186 /* Incoming message although the channel is in send mode. */
196    ChsModepeer = 390,
197    /// 0x0187 /* No more channels available. */
198    ChsNumchannels = 391,
199    /// 0x0188 /* Channel closed by peer */
200    ChsClosed = 392,
201    /// 0x0189 /* Message exceeds the commbuffer size */
202    ChsMessagesize = 393,
203    /// 0x018A /* The server application didn't properly handle an incoming request */
204    ChsReqnothandled = 394,
205    /// 0x018B /* The channel is closed due a runtime system shutdown */
206    ChsShutdown = 395,
207    /// 0x018C /* The CmpSecureChannel is not ready for encrypted communication. Try again later */
208    ChsEncryptionNotReadyYet = 396,
209    /// 0x0190 /* This node is not a server node */
210    ChsNotserver = 400,
211    /// Client (eg. the gateway) errors
212    /// (r01A0 - =0; // 0x01BF)
213    ///
214    /// 0x01A1 /* Channel Id invalid */
215    ChcChinvalid = 417,
216    /// 0x01A2 /* Channel closed or connect failed due to a timeout */
217    ChcTimeout = 418,
218    /// 0x01A3 /* Protocol error */
219    ChcProtocol = 419,
220    /// 0x01A4 /* Inrecoverable transmission error (checksum) etc. */
221    ChcChecksum = 420,
222    /// 0x01A5 /* The client application tried to send a message although the channel is in receive mode */
223    ChcModehost = 421,
224    /// 0x01A6 /* Incoming message although the channel is in send mode. */
225    ChcModepeer = 422,
226    /// 0x01A7 /* No more channels available. */
227    ChcNumchannels = 423,
228    /// 0x01A8 /* Channel closed by peer */
229    ChcClosed = 424,
230    /// 0x01A9 /* Message exceeds the commbuffer size */
231    ChcMessagesize = 425,
232    /// 0x01AA /* Not enough memory to provide the required communication buffer */
233    ChcNochbuffer = 426,
234    /// Grrors (Client-Gateway communication)
235    /// (x01C0 - =0; // 0x01D0)
236    ///
237    /// 0x01C0  /* Invalid pkg */
238    GwInvalidpkg = 448,
239    /// 0x01C1  /* Protocol error */
240    GwProtocol = 449,
241    /// 0x01C2  /* Clients protocol version cannot be handled */
242    GwVersion = 450,
243    /// 0x01C3  /* The authentication modules provided by the client are not available on the gateway */
244    GwNoauthmodule = 454,
245    /// 0x01C4  /* Command or command group not known by the gateway */
246    GwUnknowncmd = 452,
247    /// 0x01C5  /* The request has been canceled by a cancelrequest message */
248    GwReqcanceled = 453,
249    /// 0x01C7  /* The referenced request cannot be canceled (certain requests may not be canceled once they are initiated) */
250    GwCancelfailed = 455,
251    /// 0x01C8  /* The connection handle is invalid. */
252    GwInvalidconn = 456,
253    /// 0x01C9  /* GWClient/driver can't handle another connection. */
254    GwNumconnections = 457,
255    /// 0x01CA  /* Parameter values are not supported by the negotiated protocol version between GwClient and Gateway (old Gateway). */
256    GwParameterNotSupported = 458,
257    /// 0x01CB  /* Command is not supported by the negotiated protocol version between GwClient and Gateway (old Gateway). */
258    GwCommandNotSupported = 459,
259    /// 0x01CC  /* GwClient has not received any data within the timeout */
260    GwClientTimeout = 460,
261    /// 0x01CD  /* Gateway has not received any data within the timeout */
262    GwTimeout = 461,
263    /// Srors
264    /// (r0200 - =0; // 0x02FF)
265    ///
266    /// 0x0201
267    SockNotinitialized = 513,
268    /// 0x0202  /* The provided socket handle is invalid */
269    SockNotsocket = 514,
270    /// 0x0203  /* The address family is not supported */
271    SockAfunsupported = 515,
272    /// 0x0204  /* Protocol is not supported */
273    SockProtounsupported = 516,
274    /// 0x0205  /* Not enough buffer to handle the request */
275    SockNobuffer = 517,
276    /// 0x0206  /* Socket is in nonblocking mode but this call would block */
277    SockWouldblock = 518,
278    /// 0x0207  /* The provided address is already in use */
279    SockAddrinuse = 519,
280    /// 0x0208  /* The provided address is not available on this computer */
281    SockAddrnotavailable = 520,
282    /// 0x0209  /* Connection has been refused by the remote host */
283    SockConnrefused = 521,
284    /// 0x020A  /* Operation timed out */
285    SockTimedout = 522,
286    /// 0x020B  /* The host has not been found */
287    SockHostnotfound = 523,
288    /// 0x020C  /* Host is unreachable */
289    SockHostunreachable = 524,
290    /// 0x020D  /* Socket is already connected */
291    SockIsconnected = 525,
292    /// 0x020E  /* The socket is not connected */
293    SockNotconnected = 526,
294    /// 0x020F  /* Shutdown has been called on the socket */
295    SockShutdown = 527,
296    /// 0x0210  /* For sockets of type DGRAM. The package to send exceeds the maximum package size */
297    SockMsgsize = 528,
298    /// 0x0211  /* Socket has been gracefully closed. No more send/receives allowed */
299    SockClosed = 529,
300    /// Lol errors
301    /// (r0300 - =0; // 0x03FF)
302    ///
303    /// 0x0300	/* Tag missing in online communication buffer */
304    L7TagMissing = 768,
305    /// 0x0301  /* Unknown command group */
306    L7Unknowncmdgroup = 769,
307    /// 0x0302	/* Unknown command (within a valid command group) */
308    L7Unknowncmd = 770,
309    /// 0x0303	/* Level 7 service incomplete */
310    L7Incomplete = 771,
311    /// 0x0304	/* Received protocol does not match to the expected protocol on this channel */
312    L7Protocolmismatch = 772,
313    /// E the BinTagUtils library
314    /// (x0400-=0; // 0x040F)
315    ///
316    /// 0x0400 /* A nested tag reaches beyond the end of the surrounding tag */
317    BtagTagoverlap = 1024,
318    /// 0x0401 /* A tag reaches beyond the end of the buffer */
319    BtagBufferoverrun = 1025,
320    /// 0x0402 /* The number of nested tags exceeds the maximum nesting depth */
321    BtagMaxnestingdepth = 1026,
322    /// 0x0403 /* No current tag - reader/writer is at the toplevel. */
323    BtagNotag = 1027,
324    /// 0x0404 /* The current tag is not a data tag */
325    BtagNodatatag = 1028,
326    /// 0x0405 /* The operation is allowed only on a container tag not on a data tag */
327    BtagNocontainertag = 1029,
328    /// 0x0406 /* Operation only allowed on toplevel (not inside a tag) */
329    BtagNottoplevel = 1030,
330    /// 0x0407 /* Invalid alignment */
331    BtagAlignment = 1031,
332    /// E the Application component
333    /// (x0500-=0; // 0x05FF)
334    ///
335    /// 0x0500 /* Application with same name exists */
336    AppExists = 1280,
337    /// 0x0501 /* Application not available */
338    AppNotExist = 1281,
339    /// 0x0502 /* Invalid sessionid */
340    AppInvalidSessionid = 1282,
341    /// 0x0503 /* Invalid dataid of application. Data don't match! */
342    AppInvalidDataid = 1283,
343    /// 0x0504 /* Application not loaded */
344    AppNotLoaded = 1284,
345    /// 0x0505 /* no sessionid specified */
346    AppNoSessionid = 1285,
347    /// 0x0506 /* unresolved external function */
348    AppUnresolvedReference = 1286,
349    /// 0x0507 /* signature mismatch */
350    AppSignatureMismatch = 1287,
351    /// 0x0508 /* loading retain data failed */
352    AppLoadRetainDataFailed = 1288,
353    /// 0x0509 /* Version mismatch of an external lib function */
354    AppVersionMismatch = 1289,
355    /// 0x050A /* Retain mismatch of the retain area */
356    AppRetainMismatch = 1290,
357    /// 0x050B /* Ask, if single cycle should be done on breakpoint */
358    AppSinglecycleOnBreakpoint = 1291,
359    /// 0x050C /* Bootproject could not be created */
360    AppCreateBootprojectFailed = 1292,
361    /// 0x50D   /* Breakpoint condition too complex */
362    AppBpConditionTooComplex = 1293,
363    /// 0x50E   /* Breakpoint could not be set */
364    AppBpBreakpointNotSet = 1294,
365    /// 0x50F /* Interpreter code for Breakpoint is too complex */
366    AppBpInterpCodeTooComplex = 1295,
367    /// 0x0510 /* Bootproject could not be created, disk full */
368    AppCreateBootprojectFailedDiskFull = 1296,
369    /// 0x0511 /* Loading any of the C-Integration modules failed */
370    AppLoadingCintegrationModules = 1297,
371    /// 0x0512 /* Don't initialize area */
372    AppDontInitArea = 1298,
373    /// 0x0513 /* A data segment has been mapped to an area that could not be found */
374    AppMappedAreaNotFound = 1299,
375    /// 0x0514 /* The digital signature of the download is missing. This is requried by the runtime configuration */
376    AppSignatureMissing = 1230,
377    /// 0x0515 /* The decrytion of the application code failed */
378    AppDecryptionFailed = 1231,
379    /// 0x0516 /* The application code is not encrypted. This is required by the runtime */
380    AppEncryptionMissing = 1232,
381    /// 0x0517 /* The application code is not signed and encrypted */
382    AppSignatureAndEncryptionMissing = 1233,
383    /// 0x0518   /* Breakpoint could not be deleted */
384    AppBpBreakpointNotDeleted = 1304,
385    /// 0x0600		/* Internal Error of TLS component */
386    TlsInternal = 1536,
387    /// 0x0601		/* Random number generator was not seeded with enough entropy */
388    TlsRandNotInit = 1537,
389    /// 0x0602		/* The configured type of the socket does not allow this operation */
390    TlsInvalidSockettype = 1538,
391    /// 0x0603		/* The TLS handshake has already been done */
392    TlsAlreadyStarted = 1539,
393    /// Iions
394    ///
395    /// 0x0610		/* The TLS connection has been closed. */
396    TlsConnectionClosed = 1552,
397    /// 0x0611		/* The same TLS operation should be called again */
398    TlsRetryOperation = 1556,
399    /// 0x0612		/* The underlaying transport caused a problem */
400    TlsIoSystem = 1554,
401    /// 0x0613		/* The finish this operation data have to be read. The data was not available. Receive TLS protocol data to finish this operation */
402    TlsWantRead = 1555,
403    /// Cte errors
404    ///
405    /// 0x0620
406    TlsCertInvalid = 1568,
407    /// 0x0621
408    TlsCertSelfsigned = 1569,
409    /// 0x0622
410    TlsCertExpired = 1570,
411    /// irror (for uninitialized values, to avoid ERR_CERT_OK)
412    ///
413    /// 0x701
414    CertUnableToGetIssuerCert = 1793,
415    /// 0x702
416    CertUnableToGetCrl = 1794,
417    /// 0x703
418    CertUnableToDecryptCertSignature = 1795,
419    /// 0x704
420    CertUnableToDecryptCrlSignature = 1796,
421    /// 0x705
422    CertUnableToDecodeIssuerPublicKey = 1797,
423    /// 0x706
424    CertSignatureFailure = 1798,
425    /// 0x707
426    CertCrlSignatureFailure = 1799,
427    /// 0x708
428    CertNotYetValid = 1800,
429    /// 0x709
430    CertHasExpired = 1801,
431    /// 0x70a
432    CertCrlNotYetValid = 1802,
433    /// 0x70b
434    CertCrlHasExpired = 1803,
435    /// 0x70c
436    CertErrorInCertNotBeforeField = 1804,
437    /// 0x70d
438    CertErrorInCertNotAfterField = 1805,
439    /// 0x70e
440    CertErrorInCrlLastUpdateField = 1806,
441    /// 0x70f
442    CertErrorInCrlNextUpdateField = 1807,
443    /// 0x710
444    CertOutOfMem = 1808,
445    /// 0x711
446    CertDepthZeroSelfSignedCert = 1809,
447    /// 0x712
448    CertSelfSignedCertInChain = 1810,
449    /// 0x713
450    CertUnableToGetIssuerCertLocally = 1811,
451    /// 0x714
452    CertUnableToVerifyLeafSignature = 1812,
453    /// 0x715
454    CertChainTooLong = 1813,
455    /// 0x716
456    CertRevoked = 1814,
457    /// 0x717
458    CertInvalidCa = 1815,
459    /// 0x718
460    CertPathLengthExceeded = 1816,
461    /// 0x719
462    CertInvalidPurpose = 1817,
463    /// 0x71a
464    CertUntrusted = 1818,
465    /// 0x71b
466    CertRejected = 1819,
467    /// T 'informational' when looking for issuer cert
468    ///
469    /// 0x71c
470    CertSubjectIssuerMismatch = 1820,
471    /// 0x71d
472    CertAkidSkidMismatch = 1821,
473    /// 0x71e
474    CertAkidIssuerSerialMismatch = 1822,
475    /// 0x71f
476    CertKeyusageNoCertsign = 1823,
477    /// 0x720
478    CertUnableToGetCrlIssuer = 1824,
479    /// 0x721
480    CertUnhandledCriticalExtension = 1825,
481    /// 0x722
482    CertKeyusageNoCrlSign = 1826,
483    /// 0x723
484    CertUnhandledCriticalCrlExtension = 1827,
485    /// 0x724
486    CertInvalidNonCa = 1828,
487    /// 0x725
488    CertProxyPathLengthExceeded = 1829,
489    /// 0x726
490    CertKeyusageNoDigitalSignature = 1830,
491    /// 0x727
492    CertProxyCertificatesNotAllowed = 1831,
493    /// 0x728
494    CertInvalidExtension = 1832,
495    /// 0x729
496    CertInvalidPolicyExtension = 1833,
497    /// 0x72a
498    CertNoExplicitPolicy = 1834,
499    /// 0x72b
500    CertDifferentCrlScope = 1835,
501    /// 0x72c
502    CertUnsupportedExtensionFeature = 1836,
503    /// 0x72d
504    CertUnnestedResource = 1837,
505    /// 0x72e
506    CertPermittedViolation = 1838,
507    /// 0x72f
508    CertExcludedViolation = 1839,
509    /// 0x730
510    CertSubtreeMinmax = 1840,
511    /// 0x731
512    CertUnsupportedConstraintType = 1841,
513    /// 0x732
514    CertUnsupportedConstraintSyntax = 1842,
515    /// 0x733
516    CertUnsupportedNameSyntax = 1843,
517    /// 0x734
518    CertCrlPathValidationError = 1844,
519    /// Tcation is not happy
520    ///
521    /// 0x735
522    CertApplicationVerification = 1845,
523    /// 0x736
524    CertMissing = 1846,
525    /// 0x737
526    CertUnknownError = 1847,
527    /// 0x750		/* The p12 operation failed for an unknown reason */
528    P12UnknownError = 1872,
529    /// 0x751		/* The MAC of the p12 operation was invalid. Typically this is because of a wrong passphrase */
530    P12MacInvalid = 1873,
531    /// 0x752		/* The p12 container was created with an unsupported encryption algorithm */
532    P12UnsupportedCipher = 1874,
533    /// 0x753		/* The p12 container was created with an unsupported digest algorithm */
534    P12UnsupportedDigest = 1875,
535    /// 0x754		/* The p12 container was created with an unsupported option. */
536    P12UnsupportedOption = 1876,
537    /// 0x755		/* The p12 container could not be parsed. */
538    P12ParseError = 1877,
539    /// 0x756		/* The private key of the p12 container does not match the certifictate within the container. */
540    P12KeyNomatch = 1878,
541    /// 0x757		/* The p12 container does not contain a private key. */
542    P12NoKey = 1879,
543    /// 0x758		/* The p12 container does not contain a certificate. */
544    P12NoCert = 1880,
545    /// Dnagement errors
546    /// (x800 - =0; // 0x8FF)
547    ///
548    /// 0x801		/* The corresponding device management service is not running and cannot be started! */
549    DmsServiceNotRunning = 2049,
550    /// 0x06
551    MonitoringErrNestingDepth = 6,
552    /// 0x07
553    MonitoringErrNoConsistency = 7,
554    /// 0x08
555    MonitoringErrBuffersizeExceeded = 8,
556    /// 0x09
557    MonitoringErrInvalidIndex = 9,
558    /// 0xff
559    MonitoringErrUnknown = 255,
560    /// Ffer errors
561    ///
562    /// 0x0800	/* File size don't match */
563    FtFileSizeMismatch = 2048,
564    /// Iess errors
565    ///
566    /// 0x0900	/* Unknown symbolic node type */
567    IecvaraccUnknownNodeType = 2304,
568    /// 0x0901	/* No child not available */
569    IecvaraccNoChildNode = 2305,
570    /// 0x0902	/* Symbolconfiguration has changed */
571    IecvaraccConfigChanged = 2306,
572    /// 0x0903	/* AF_ALLOW_SYMBOLIC_VARIABLE_ACCESS_IN_SYNC_WITH_IEC_TASK is not set for all applications on the device*/
573    IecvaraccSyncConsistencyDenied = 2307,
574    /// 0x0A00	/* A received message id was invalid. */
575    EdgeInvalidMessageid = 2560,
576    /// 0x0A01	/* A session is in an invalid state. */
577    EdgeInvalidState = 2561,
578    /// 0x0A02	/* Unknown session id requested */
579    EdgeSessionidInvalid = 2562,
580    /// 0x0A03	/* The received package is not compliant with the service specification */
581    EdgePkginvalid = 2563,
582    /// 0x0A04	/* Not enough buffer to handle the request */
583    EdgeNobuffer = 2564,
584    /// 0x0A05	/* Timeout of the request */
585    EdgeTimeout = 2565,
586    /// 0x0A06	/* The requested variable type or size does not match, maybe out of date */
587    EdgeVarMismatch = 2566,
588    /// 0x0A07	/* The PLC state is not in state STATE_RUNNING */
589    EdgePlcNotConnected = 2567,
590    /// 0x0A08	/* Invalid variable list specified */
591    EdgePlcNoCyclicListDefined = 2568,
592    /// 0x0A09	/* Communication error occurred during symbol load */
593    EdgeCommFatal = 2569,
594    /// Vndancy errors
595    ///
596    /// 0x0B00	/* Too many tags */
597    ReduTooTags = 2816,
598    /// 0x0B01	/* Memory error during ID creation */
599    ReduMemory = 2817,
600    /// 0x0B02  /* Client creation error */
601    ReduClientCreationErr = 2818,
602    /// 0x0B03 /* This CFA Signature Scheme v1 signer's certificate could not be parsed. */
603    DmSigSigMalformedCertificate = 2819,
604    /// 0x0B04 /* Failed to parse this signer's signature record contained in the CFA Signature Scheme v1 signature. */
605    DmSigSigMalformedSignature = 2820,
606    /// 0x0B05 /* Failed to parse this signer's digest record contained in the CFA Signature Scheme v1 signature. */
607    DmSigSigMalformedDigest = 2821,
608    /// 0x0B06 /* This CFA Signature Scheme v1 signer contains a malformed additional attribute. */
609    DmSigSigMalformedAdditionalAttribute = 2822,
610    /// 0x0B07 /* No signers in CFA Signature Scheme v1 signature */
611    DmSigSigNoSigners = 2823,
612    /// 0x0B08 /* This CFA Signature Scheme v1 signer contains a signature produced using an unknown algorithm. */
613    DmSigSigUnknownSigAlgorithm = 2824,
614    /// 0x0B09 /* This CFA Signature Scheme v1 signer contains an unknown additional attribute. */
615    DmSigSigUnknownAdditionalAttribute = 2825,
616    /// 0x0B0A /* An error was encountered while verifying CFA Signature Scheme v1 signature of this signer. */
617    DmSigSigVerifyError = 2826,
618    /// 0x0B0B /* Signature over signed-data did not verify */
619    DmSigSigDidNotVerify = 2827,
620    /// 0x0B0C /* No signatures */
621    DmSigSigNoSignatures = 2828,
622    /// 0x0B0D /* No supported signatures */
623    DmSigSigNoSupportedSignatures = 2829,
624    /// 0x0B0E /* No certificates */
625    DmSigSigNoCertificates = 2830,
626    /// 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. */
627    DmSigSigPublicKeyMismatchBetweenCertificateAndSignaturesRecord = 2831,
628    /// 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. */
629    DmSigSigSigAlgMismatchBetweenSignaturesAndDigestsRecords = 2832,
630    /// 0x0B11 /* The CFA's digest does not match the digest contained in the CFA Signature Scheme v1 signature. */
631    DmSigSigCfaDigestDidNotVerify = 2833,
632    /// 0x0B12 /* CFA Signing Block contains an unknown entry. */
633    DmSigCfaSigBlockUnknownEntryId = 2834,
634    /// Ofic error code range
635    ///
636    /// 0x8000	/* OEM error range start */
637    OemStart = 32768,
638    /// 0xFFFF	/* OEM error range end */
639    OemEnd = 65535,
640}
641impl Err {
642    /// String value of the enum field names used in the ProtoBuf definition.
643    ///
644    /// The values are not transformed in any way and thus are considered stable
645    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
646    pub fn as_str_name(&self) -> &'static str {
647        match self {
648            Self::Ok => "ERR_OK",
649            Self::Failed => "ERR_FAILED",
650            Self::Parameter => "ERR_PARAMETER",
651            Self::Notinitialized => "ERR_NOTINITIALIZED",
652            Self::Version => "ERR_VERSION",
653            Self::Timeout => "ERR_TIMEOUT",
654            Self::Pending => "ERR_PENDING",
655            Self::Numpending => "ERR_NUMPENDING",
656            Self::Notimplemented => "ERR_NOTIMPLEMENTED",
657            Self::Invalidid => "ERR_INVALIDID",
658            Self::Overflow => "ERR_OVERFLOW",
659            Self::Buffersize => "ERR_BUFFERSIZE",
660            Self::NoObject => "ERR_NO_OBJECT",
661            Self::Nomemory => "ERR_NOMEMORY",
662            Self::Duplicate => "ERR_DUPLICATE",
663            Self::MemoryOverwrite => "ERR_MEMORY_OVERWRITE",
664            Self::InvalidHandle => "ERR_INVALID_HANDLE",
665            Self::EndOfObject => "ERR_END_OF_OBJECT",
666            Self::NoChange => "ERR_NO_CHANGE",
667            Self::InvalidInterface => "ERR_INVALID_INTERFACE",
668            Self::NotSupported => "ERR_NOT_SUPPORTED",
669            Self::NoAccessRights => "ERR_NO_ACCESS_RIGHTS",
670            Self::OutOfLimits => "ERR_OUT_OF_LIMITS",
671            Self::EntriesRemaining => "ERR_ENTRIES_REMAINING",
672            Self::InvalidSessionId => "ERR_INVALID_SESSION_ID",
673            Self::Exception => "ERR_EXCEPTION",
674            Self::SignatureMismatch => "ERR_SIGNATURE_MISMATCH",
675            Self::VersionMismatch => "ERR_VERSION_MISMATCH",
676            Self::TypeMismatch => "ERR_TYPE_MISMATCH",
677            Self::IdMismatch => "ERR_ID_MISMATCH",
678            Self::NoConsistency => "ERR_NO_CONSISTENCY",
679            Self::NoCommCycle => "ERR_NO_COMM_CYCLE",
680            Self::DontSuspendTask => "ERR_DONT_SUSPEND_TASK",
681            Self::MemoryLockFailed => "ERR_MEMORY_LOCK_FAILED",
682            Self::LicenseMissing => "ERR_LICENSE_MISSING",
683            Self::OperationDenied => "ERR_OPERATION_DENIED",
684            Self::Device => "ERR_DEVICE",
685            Self::DiskFull => "ERR_DISK_FULL",
686            Self::CrcFailed => "ERR_CRC_FAILED",
687            Self::MediaErase => "ERR_MEDIA_ERASE",
688            Self::FileError => "ERR_FILE_ERROR",
689            Self::NoRetainMemory => "ERR_NO_RETAIN_MEMORY",
690            Self::OutOfLimitsMin => "ERR_OUT_OF_LIMITS_MIN",
691            Self::OutOfLimitsMax => "ERR_OUT_OF_LIMITS_MAX",
692            Self::SizeMismatch => "ERR_SIZE_MISMATCH",
693            Self::CallAgain => "ERR_CALL_AGAIN",
694            Self::NothingToDo => "ERR_NOTHING_TO_DO",
695            Self::SecurityChecksFailed => "ERR_SECURITY_CHECKS_FAILED",
696            Self::InvalidSequence => "ERR_INVALID_SEQUENCE",
697            Self::InvalidReference => "ERR_INVALID_REFERENCE",
698            Self::ConversionIncomplete => "ERR_CONVERSION_INCOMPLETE",
699            Self::TooManyRetries => "ERR_TOO_MANY_RETRIES",
700            Self::Alignment => "ERR_ALIGNMENT",
701            Self::ChangePassword => "ERR_CHANGE_PASSWORD",
702            Self::Reauthenticate => "ERR_REAUTHENTICATE",
703            Self::Relogin => "ERR_RELOGIN",
704            Self::InvalidUrl => "ERR_INVALID_URL",
705            Self::InvalidState => "ERR_INVALID_STATE",
706            Self::UserMismatch => "ERR_USER_MISMATCH",
707            Self::NotReadyYet => "ERR_NOT_READY_YET",
708            Self::ActivateUsermgmt => "ERR_ACTIVATE_USERMGMT",
709            Self::NoUsermgmt => "ERR_NO_USERMGMT",
710            Self::InvalidEncoding => "ERR_INVALID_ENCODING",
711            Self::TargetMismatch => "ERR_TARGET_MISMATCH",
712            Self::ClientInRoMode => "ERR_CLIENT_IN_RO_MODE",
713            Self::LicenseExceeded => "ERR_LICENSE_EXCEEDED",
714            Self::AsyncException => "ERR_ASYNC_EXCEPTION",
715            Self::NoSignature => "ERR_NO_SIGNATURE",
716            Self::NetFailed => "ERR_NET_FAILED",
717            Self::NetNotconnected => "ERR_NET_NOTCONNECTED",
718            Self::NetMsgsize => "ERR_NET_MSGSIZE",
719            Self::NetNoroute => "ERR_NET_NOROUTE",
720            Self::NetTimeout => "ERR_NET_TIMEOUT",
721            Self::NetPkginvalid => "ERR_NET_PKGINVALID",
722            Self::SvcPkginvalid => "ERR_SVC_PKGINVALID",
723            Self::SvcInvalidservice => "ERR_SVC_INVALIDSERVICE",
724            Self::SvcVersionMismatch => "ERR_SVC_VERSION_MISMATCH",
725            Self::ClntPkginvalid => "ERR_CLNT_PKGINVALID",
726            Self::DevsLoginfailed => "ERR_DEVS_LOGINFAILED",
727            Self::DevsSessiontimeout => "ERR_DEVS_SESSIONTIMEOUT",
728            Self::DevsChannelclosed => "ERR_DEVS_CHANNELCLOSED",
729            Self::ChsChinvalid => "ERR_CHS_CHINVALID",
730            Self::ChsTimeout => "ERR_CHS_TIMEOUT",
731            Self::ChsProtocol => "ERR_CHS_PROTOCOL",
732            Self::ChsChecksum => "ERR_CHS_CHECKSUM",
733            Self::ChsModehost => "ERR_CHS_MODEHOST",
734            Self::ChsModepeer => "ERR_CHS_MODEPEER",
735            Self::ChsNumchannels => "ERR_CHS_NUMCHANNELS",
736            Self::ChsClosed => "ERR_CHS_CLOSED",
737            Self::ChsMessagesize => "ERR_CHS_MESSAGESIZE",
738            Self::ChsReqnothandled => "ERR_CHS_REQNOTHANDLED",
739            Self::ChsShutdown => "ERR_CHS_SHUTDOWN",
740            Self::ChsEncryptionNotReadyYet => "ERR_CHS_ENCRYPTION_NOT_READY_YET",
741            Self::ChsNotserver => "ERR_CHS_NOTSERVER",
742            Self::ChcChinvalid => "ERR_CHC_CHINVALID",
743            Self::ChcTimeout => "ERR_CHC_TIMEOUT",
744            Self::ChcProtocol => "ERR_CHC_PROTOCOL",
745            Self::ChcChecksum => "ERR_CHC_CHECKSUM",
746            Self::ChcModehost => "ERR_CHC_MODEHOST",
747            Self::ChcModepeer => "ERR_CHC_MODEPEER",
748            Self::ChcNumchannels => "ERR_CHC_NUMCHANNELS",
749            Self::ChcClosed => "ERR_CHC_CLOSED",
750            Self::ChcMessagesize => "ERR_CHC_MESSAGESIZE",
751            Self::ChcNochbuffer => "ERR_CHC_NOCHBUFFER",
752            Self::GwInvalidpkg => "ERR_GW_INVALIDPKG",
753            Self::GwProtocol => "ERR_GW_PROTOCOL",
754            Self::GwVersion => "ERR_GW_VERSION",
755            Self::GwNoauthmodule => "ERR_GW_NOAUTHMODULE",
756            Self::GwUnknowncmd => "ERR_GW_UNKNOWNCMD",
757            Self::GwReqcanceled => "ERR_GW_REQCANCELED",
758            Self::GwCancelfailed => "ERR_GW_CANCELFAILED",
759            Self::GwInvalidconn => "ERR_GW_INVALIDCONN",
760            Self::GwNumconnections => "ERR_GW_NUMCONNECTIONS",
761            Self::GwParameterNotSupported => "ERR_GW_PARAMETER_NOT_SUPPORTED",
762            Self::GwCommandNotSupported => "ERR_GW_COMMAND_NOT_SUPPORTED",
763            Self::GwClientTimeout => "ERR_GW_CLIENT_TIMEOUT",
764            Self::GwTimeout => "ERR_GW_TIMEOUT",
765            Self::SockNotinitialized => "ERR_SOCK_NOTINITIALIZED",
766            Self::SockNotsocket => "ERR_SOCK_NOTSOCKET",
767            Self::SockAfunsupported => "ERR_SOCK_AFUNSUPPORTED",
768            Self::SockProtounsupported => "ERR_SOCK_PROTOUNSUPPORTED",
769            Self::SockNobuffer => "ERR_SOCK_NOBUFFER",
770            Self::SockWouldblock => "ERR_SOCK_WOULDBLOCK",
771            Self::SockAddrinuse => "ERR_SOCK_ADDRINUSE",
772            Self::SockAddrnotavailable => "ERR_SOCK_ADDRNOTAVAILABLE",
773            Self::SockConnrefused => "ERR_SOCK_CONNREFUSED",
774            Self::SockTimedout => "ERR_SOCK_TIMEDOUT",
775            Self::SockHostnotfound => "ERR_SOCK_HOSTNOTFOUND",
776            Self::SockHostunreachable => "ERR_SOCK_HOSTUNREACHABLE",
777            Self::SockIsconnected => "ERR_SOCK_ISCONNECTED",
778            Self::SockNotconnected => "ERR_SOCK_NOTCONNECTED",
779            Self::SockShutdown => "ERR_SOCK_SHUTDOWN",
780            Self::SockMsgsize => "ERR_SOCK_MSGSIZE",
781            Self::SockClosed => "ERR_SOCK_CLOSED",
782            Self::L7TagMissing => "ERR_L7_TAG_MISSING",
783            Self::L7Unknowncmdgroup => "ERR_L7_UNKNOWNCMDGROUP",
784            Self::L7Unknowncmd => "ERR_L7_UNKNOWNCMD",
785            Self::L7Incomplete => "ERR_L7_INCOMPLETE",
786            Self::L7Protocolmismatch => "ERR_L7_PROTOCOLMISMATCH",
787            Self::BtagTagoverlap => "ERR_BTAG_TAGOVERLAP",
788            Self::BtagBufferoverrun => "ERR_BTAG_BUFFEROVERRUN",
789            Self::BtagMaxnestingdepth => "ERR_BTAG_MAXNESTINGDEPTH",
790            Self::BtagNotag => "ERR_BTAG_NOTAG",
791            Self::BtagNodatatag => "ERR_BTAG_NODATATAG",
792            Self::BtagNocontainertag => "ERR_BTAG_NOCONTAINERTAG",
793            Self::BtagNottoplevel => "ERR_BTAG_NOTTOPLEVEL",
794            Self::BtagAlignment => "ERR_BTAG_ALIGNMENT",
795            Self::AppExists => "ERR_APP_EXISTS",
796            Self::AppNotExist => "ERR_APP_NOT_EXIST",
797            Self::AppInvalidSessionid => "ERR_APP_INVALID_SESSIONID",
798            Self::AppInvalidDataid => "ERR_APP_INVALID_DATAID",
799            Self::AppNotLoaded => "ERR_APP_NOT_LOADED",
800            Self::AppNoSessionid => "ERR_APP_NO_SESSIONID",
801            Self::AppUnresolvedReference => "ERR_APP_UNRESOLVED_REFERENCE",
802            Self::AppSignatureMismatch => "ERR_APP_SIGNATURE_MISMATCH",
803            Self::AppLoadRetainDataFailed => "ERR_APP_LOAD_RETAIN_DATA_FAILED",
804            Self::AppVersionMismatch => "ERR_APP_VERSION_MISMATCH",
805            Self::AppRetainMismatch => "ERR_APP_RETAIN_MISMATCH",
806            Self::AppSinglecycleOnBreakpoint => "ERR_APP_SINGLECYCLE_ON_BREAKPOINT",
807            Self::AppCreateBootprojectFailed => "ERR_APP_CREATE_BOOTPROJECT_FAILED",
808            Self::AppBpConditionTooComplex => "ERR_APP_BP_CONDITION_TOO_COMPLEX",
809            Self::AppBpBreakpointNotSet => "ERR_APP_BP_BREAKPOINT_NOT_SET",
810            Self::AppBpInterpCodeTooComplex => "ERR_APP_BP_INTERP_CODE_TOO_COMPLEX",
811            Self::AppCreateBootprojectFailedDiskFull => {
812                "ERR_APP_CREATE_BOOTPROJECT_FAILED_DISK_FULL"
813            }
814            Self::AppLoadingCintegrationModules => "ERR_APP_LOADING_CINTEGRATION_MODULES",
815            Self::AppDontInitArea => "ERR_APP_DONT_INIT_AREA",
816            Self::AppMappedAreaNotFound => "ERR_APP_MAPPED_AREA_NOT_FOUND",
817            Self::AppSignatureMissing => "ERR_APP_SIGNATURE_MISSING",
818            Self::AppDecryptionFailed => "ERR_APP_DECRYPTION_FAILED",
819            Self::AppEncryptionMissing => "ERR_APP_ENCRYPTION_MISSING",
820            Self::AppSignatureAndEncryptionMissing => {
821                "ERR_APP_SIGNATURE_AND_ENCRYPTION_MISSING"
822            }
823            Self::AppBpBreakpointNotDeleted => "ERR_APP_BP_BREAKPOINT_NOT_DELETED",
824            Self::TlsInternal => "ERR_TLS_INTERNAL",
825            Self::TlsRandNotInit => "ERR_TLS_RAND_NOT_INIT",
826            Self::TlsInvalidSockettype => "ERR_TLS_INVALID_SOCKETTYPE",
827            Self::TlsAlreadyStarted => "ERR_TLS_ALREADY_STARTED",
828            Self::TlsConnectionClosed => "ERR_TLS_CONNECTION_CLOSED",
829            Self::TlsRetryOperation => "ERR_TLS_RETRY_OPERATION",
830            Self::TlsIoSystem => "ERR_TLS_IO_SYSTEM",
831            Self::TlsWantRead => "ERR_TLS_WANT_READ",
832            Self::TlsCertInvalid => "ERR_TLS_CERT_INVALID",
833            Self::TlsCertSelfsigned => "ERR_TLS_CERT_SELFSIGNED",
834            Self::TlsCertExpired => "ERR_TLS_CERT_EXPIRED",
835            Self::CertUnableToGetIssuerCert => "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT",
836            Self::CertUnableToGetCrl => "ERR_CERT_UNABLE_TO_GET_CRL",
837            Self::CertUnableToDecryptCertSignature => {
838                "ERR_CERT_UNABLE_TO_DECRYPT_CERT_SIGNATURE"
839            }
840            Self::CertUnableToDecryptCrlSignature => {
841                "ERR_CERT_UNABLE_TO_DECRYPT_CRL_SIGNATURE"
842            }
843            Self::CertUnableToDecodeIssuerPublicKey => {
844                "ERR_CERT_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY"
845            }
846            Self::CertSignatureFailure => "ERR_CERT_SIGNATURE_FAILURE",
847            Self::CertCrlSignatureFailure => "ERR_CERT_CRL_SIGNATURE_FAILURE",
848            Self::CertNotYetValid => "ERR_CERT_NOT_YET_VALID",
849            Self::CertHasExpired => "ERR_CERT_HAS_EXPIRED",
850            Self::CertCrlNotYetValid => "ERR_CERT_CRL_NOT_YET_VALID",
851            Self::CertCrlHasExpired => "ERR_CERT_CRL_HAS_EXPIRED",
852            Self::CertErrorInCertNotBeforeField => {
853                "ERR_CERT_ERROR_IN_CERT_NOT_BEFORE_FIELD"
854            }
855            Self::CertErrorInCertNotAfterField => {
856                "ERR_CERT_ERROR_IN_CERT_NOT_AFTER_FIELD"
857            }
858            Self::CertErrorInCrlLastUpdateField => {
859                "ERR_CERT_ERROR_IN_CRL_LAST_UPDATE_FIELD"
860            }
861            Self::CertErrorInCrlNextUpdateField => {
862                "ERR_CERT_ERROR_IN_CRL_NEXT_UPDATE_FIELD"
863            }
864            Self::CertOutOfMem => "ERR_CERT_OUT_OF_MEM",
865            Self::CertDepthZeroSelfSignedCert => "ERR_CERT_DEPTH_ZERO_SELF_SIGNED_CERT",
866            Self::CertSelfSignedCertInChain => "ERR_CERT_SELF_SIGNED_CERT_IN_CHAIN",
867            Self::CertUnableToGetIssuerCertLocally => {
868                "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT_LOCALLY"
869            }
870            Self::CertUnableToVerifyLeafSignature => {
871                "ERR_CERT_UNABLE_TO_VERIFY_LEAF_SIGNATURE"
872            }
873            Self::CertChainTooLong => "ERR_CERT_CHAIN_TOO_LONG",
874            Self::CertRevoked => "ERR_CERT_REVOKED",
875            Self::CertInvalidCa => "ERR_CERT_INVALID_CA",
876            Self::CertPathLengthExceeded => "ERR_CERT_PATH_LENGTH_EXCEEDED",
877            Self::CertInvalidPurpose => "ERR_CERT_INVALID_PURPOSE",
878            Self::CertUntrusted => "ERR_CERT_UNTRUSTED",
879            Self::CertRejected => "ERR_CERT_REJECTED",
880            Self::CertSubjectIssuerMismatch => "ERR_CERT_SUBJECT_ISSUER_MISMATCH",
881            Self::CertAkidSkidMismatch => "ERR_CERT_AKID_SKID_MISMATCH",
882            Self::CertAkidIssuerSerialMismatch => "ERR_CERT_AKID_ISSUER_SERIAL_MISMATCH",
883            Self::CertKeyusageNoCertsign => "ERR_CERT_KEYUSAGE_NO_CERTSIGN",
884            Self::CertUnableToGetCrlIssuer => "ERR_CERT_UNABLE_TO_GET_CRL_ISSUER",
885            Self::CertUnhandledCriticalExtension => {
886                "ERR_CERT_UNHANDLED_CRITICAL_EXTENSION"
887            }
888            Self::CertKeyusageNoCrlSign => "ERR_CERT_KEYUSAGE_NO_CRL_SIGN",
889            Self::CertUnhandledCriticalCrlExtension => {
890                "ERR_CERT_UNHANDLED_CRITICAL_CRL_EXTENSION"
891            }
892            Self::CertInvalidNonCa => "ERR_CERT_INVALID_NON_CA",
893            Self::CertProxyPathLengthExceeded => "ERR_CERT_PROXY_PATH_LENGTH_EXCEEDED",
894            Self::CertKeyusageNoDigitalSignature => {
895                "ERR_CERT_KEYUSAGE_NO_DIGITAL_SIGNATURE"
896            }
897            Self::CertProxyCertificatesNotAllowed => {
898                "ERR_CERT_PROXY_CERTIFICATES_NOT_ALLOWED"
899            }
900            Self::CertInvalidExtension => "ERR_CERT_INVALID_EXTENSION",
901            Self::CertInvalidPolicyExtension => "ERR_CERT_INVALID_POLICY_EXTENSION",
902            Self::CertNoExplicitPolicy => "ERR_CERT_NO_EXPLICIT_POLICY",
903            Self::CertDifferentCrlScope => "ERR_CERT_DIFFERENT_CRL_SCOPE",
904            Self::CertUnsupportedExtensionFeature => {
905                "ERR_CERT_UNSUPPORTED_EXTENSION_FEATURE"
906            }
907            Self::CertUnnestedResource => "ERR_CERT_UNNESTED_RESOURCE",
908            Self::CertPermittedViolation => "ERR_CERT_PERMITTED_VIOLATION",
909            Self::CertExcludedViolation => "ERR_CERT_EXCLUDED_VIOLATION",
910            Self::CertSubtreeMinmax => "ERR_CERT_SUBTREE_MINMAX",
911            Self::CertUnsupportedConstraintType => "ERR_CERT_UNSUPPORTED_CONSTRAINT_TYPE",
912            Self::CertUnsupportedConstraintSyntax => {
913                "ERR_CERT_UNSUPPORTED_CONSTRAINT_SYNTAX"
914            }
915            Self::CertUnsupportedNameSyntax => "ERR_CERT_UNSUPPORTED_NAME_SYNTAX",
916            Self::CertCrlPathValidationError => "ERR_CERT_CRL_PATH_VALIDATION_ERROR",
917            Self::CertApplicationVerification => "ERR_CERT_APPLICATION_VERIFICATION",
918            Self::CertMissing => "ERR_CERT_MISSING",
919            Self::CertUnknownError => "ERR_CERT_UNKNOWN_ERROR",
920            Self::P12UnknownError => "ERR_P12_UNKNOWN_ERROR",
921            Self::P12MacInvalid => "ERR_P12_MAC_INVALID",
922            Self::P12UnsupportedCipher => "ERR_P12_UNSUPPORTED_CIPHER",
923            Self::P12UnsupportedDigest => "ERR_P12_UNSUPPORTED_DIGEST",
924            Self::P12UnsupportedOption => "ERR_P12_UNSUPPORTED_OPTION",
925            Self::P12ParseError => "ERR_P12_PARSE_ERROR",
926            Self::P12KeyNomatch => "ERR_P12_KEY_NOMATCH",
927            Self::P12NoKey => "ERR_P12_NO_KEY",
928            Self::P12NoCert => "ERR_P12_NO_CERT",
929            Self::DmsServiceNotRunning => "ERR_DMS_SERVICE_NOT_RUNNING",
930            Self::MonitoringErrNestingDepth => "MONITORING_ERR_NESTING_DEPTH",
931            Self::MonitoringErrNoConsistency => "MONITORING_ERR_NO_CONSISTENCY",
932            Self::MonitoringErrBuffersizeExceeded => "MONITORING_ERR_BUFFERSIZE_EXCEEDED",
933            Self::MonitoringErrInvalidIndex => "MONITORING_ERR_INVALID_INDEX",
934            Self::MonitoringErrUnknown => "MONITORING_ERR_UNKNOWN",
935            Self::FtFileSizeMismatch => "ERR_FT_FILE_SIZE_MISMATCH",
936            Self::IecvaraccUnknownNodeType => "ERR_IECVARACC_UNKNOWN_NODE_TYPE",
937            Self::IecvaraccNoChildNode => "ERR_IECVARACC_NO_CHILD_NODE",
938            Self::IecvaraccConfigChanged => "ERR_IECVARACC_CONFIG_CHANGED",
939            Self::IecvaraccSyncConsistencyDenied => {
940                "ERR_IECVARACC_SYNC_CONSISTENCY_DENIED"
941            }
942            Self::EdgeInvalidMessageid => "ERR_EDGE_INVALID_MESSAGEID",
943            Self::EdgeInvalidState => "ERR_EDGE_INVALID_STATE",
944            Self::EdgeSessionidInvalid => "ERR_EDGE_SESSIONID_INVALID",
945            Self::EdgePkginvalid => "ERR_EDGE_PKGINVALID",
946            Self::EdgeNobuffer => "ERR_EDGE_NOBUFFER",
947            Self::EdgeTimeout => "ERR_EDGE_TIMEOUT",
948            Self::EdgeVarMismatch => "ERR_EDGE_VAR_MISMATCH",
949            Self::EdgePlcNotConnected => "ERR_EDGE_PLC_NOT_CONNECTED",
950            Self::EdgePlcNoCyclicListDefined => "ERR_EDGE_PLC_NO_CYCLIC_LIST_DEFINED",
951            Self::EdgeCommFatal => "ERR_EDGE_COMM_FATAL",
952            Self::ReduTooTags => "ERR_REDU_TOO_TAGS",
953            Self::ReduMemory => "ERR_REDU_MEMORY",
954            Self::ReduClientCreationErr => "ERR_REDU_CLIENT_CREATION_ERR",
955            Self::DmSigSigMalformedCertificate => "ERR_DM_SIG_SIG_MALFORMED_CERTIFICATE",
956            Self::DmSigSigMalformedSignature => "ERR_DM_SIG_SIG_MALFORMED_SIGNATURE",
957            Self::DmSigSigMalformedDigest => "ERR_DM_SIG_SIG_MALFORMED_DIGEST",
958            Self::DmSigSigMalformedAdditionalAttribute => {
959                "ERR_DM_SIG_SIG_MALFORMED_ADDITIONAL_ATTRIBUTE"
960            }
961            Self::DmSigSigNoSigners => "ERR_DM_SIG_SIG_NO_SIGNERS",
962            Self::DmSigSigUnknownSigAlgorithm => "ERR_DM_SIG_SIG_UNKNOWN_SIG_ALGORITHM",
963            Self::DmSigSigUnknownAdditionalAttribute => {
964                "ERR_DM_SIG_SIG_UNKNOWN_ADDITIONAL_ATTRIBUTE"
965            }
966            Self::DmSigSigVerifyError => "ERR_DM_SIG_SIG_VERIFY_ERROR",
967            Self::DmSigSigDidNotVerify => "ERR_DM_SIG_SIG_DID_NOT_VERIFY",
968            Self::DmSigSigNoSignatures => "ERR_DM_SIG_SIG_NO_SIGNATURES",
969            Self::DmSigSigNoSupportedSignatures => {
970                "ERR_DM_SIG_SIG_NO_SUPPORTED_SIGNATURES"
971            }
972            Self::DmSigSigNoCertificates => "ERR_DM_SIG_SIG_NO_CERTIFICATES",
973            Self::DmSigSigPublicKeyMismatchBetweenCertificateAndSignaturesRecord => {
974                "ERR_DM_SIG_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD"
975            }
976            Self::DmSigSigSigAlgMismatchBetweenSignaturesAndDigestsRecords => {
977                "ERR_DM_SIG_SIG_SIG_ALG_MISMATCH_BETWEEN_SIGNATURES_AND_DIGESTS_RECORDS"
978            }
979            Self::DmSigSigCfaDigestDidNotVerify => {
980                "ERR_DM_SIG_SIG_CFA_DIGEST_DID_NOT_VERIFY"
981            }
982            Self::DmSigCfaSigBlockUnknownEntryId => {
983                "ERR_DM_SIG_CFA_SIG_BLOCK_UNKNOWN_ENTRY_ID"
984            }
985            Self::OemStart => "ERR_OEM_START",
986            Self::OemEnd => "ERR_OEM_END",
987        }
988    }
989    /// Creates an enum from field names used in the ProtoBuf definition.
990    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
991        match value {
992            "ERR_OK" => Some(Self::Ok),
993            "ERR_FAILED" => Some(Self::Failed),
994            "ERR_PARAMETER" => Some(Self::Parameter),
995            "ERR_NOTINITIALIZED" => Some(Self::Notinitialized),
996            "ERR_VERSION" => Some(Self::Version),
997            "ERR_TIMEOUT" => Some(Self::Timeout),
998            "ERR_PENDING" => Some(Self::Pending),
999            "ERR_NUMPENDING" => Some(Self::Numpending),
1000            "ERR_NOTIMPLEMENTED" => Some(Self::Notimplemented),
1001            "ERR_INVALIDID" => Some(Self::Invalidid),
1002            "ERR_OVERFLOW" => Some(Self::Overflow),
1003            "ERR_BUFFERSIZE" => Some(Self::Buffersize),
1004            "ERR_NO_OBJECT" => Some(Self::NoObject),
1005            "ERR_NOMEMORY" => Some(Self::Nomemory),
1006            "ERR_DUPLICATE" => Some(Self::Duplicate),
1007            "ERR_MEMORY_OVERWRITE" => Some(Self::MemoryOverwrite),
1008            "ERR_INVALID_HANDLE" => Some(Self::InvalidHandle),
1009            "ERR_END_OF_OBJECT" => Some(Self::EndOfObject),
1010            "ERR_NO_CHANGE" => Some(Self::NoChange),
1011            "ERR_INVALID_INTERFACE" => Some(Self::InvalidInterface),
1012            "ERR_NOT_SUPPORTED" => Some(Self::NotSupported),
1013            "ERR_NO_ACCESS_RIGHTS" => Some(Self::NoAccessRights),
1014            "ERR_OUT_OF_LIMITS" => Some(Self::OutOfLimits),
1015            "ERR_ENTRIES_REMAINING" => Some(Self::EntriesRemaining),
1016            "ERR_INVALID_SESSION_ID" => Some(Self::InvalidSessionId),
1017            "ERR_EXCEPTION" => Some(Self::Exception),
1018            "ERR_SIGNATURE_MISMATCH" => Some(Self::SignatureMismatch),
1019            "ERR_VERSION_MISMATCH" => Some(Self::VersionMismatch),
1020            "ERR_TYPE_MISMATCH" => Some(Self::TypeMismatch),
1021            "ERR_ID_MISMATCH" => Some(Self::IdMismatch),
1022            "ERR_NO_CONSISTENCY" => Some(Self::NoConsistency),
1023            "ERR_NO_COMM_CYCLE" => Some(Self::NoCommCycle),
1024            "ERR_DONT_SUSPEND_TASK" => Some(Self::DontSuspendTask),
1025            "ERR_MEMORY_LOCK_FAILED" => Some(Self::MemoryLockFailed),
1026            "ERR_LICENSE_MISSING" => Some(Self::LicenseMissing),
1027            "ERR_OPERATION_DENIED" => Some(Self::OperationDenied),
1028            "ERR_DEVICE" => Some(Self::Device),
1029            "ERR_DISK_FULL" => Some(Self::DiskFull),
1030            "ERR_CRC_FAILED" => Some(Self::CrcFailed),
1031            "ERR_MEDIA_ERASE" => Some(Self::MediaErase),
1032            "ERR_FILE_ERROR" => Some(Self::FileError),
1033            "ERR_NO_RETAIN_MEMORY" => Some(Self::NoRetainMemory),
1034            "ERR_OUT_OF_LIMITS_MIN" => Some(Self::OutOfLimitsMin),
1035            "ERR_OUT_OF_LIMITS_MAX" => Some(Self::OutOfLimitsMax),
1036            "ERR_SIZE_MISMATCH" => Some(Self::SizeMismatch),
1037            "ERR_CALL_AGAIN" => Some(Self::CallAgain),
1038            "ERR_NOTHING_TO_DO" => Some(Self::NothingToDo),
1039            "ERR_SECURITY_CHECKS_FAILED" => Some(Self::SecurityChecksFailed),
1040            "ERR_INVALID_SEQUENCE" => Some(Self::InvalidSequence),
1041            "ERR_INVALID_REFERENCE" => Some(Self::InvalidReference),
1042            "ERR_CONVERSION_INCOMPLETE" => Some(Self::ConversionIncomplete),
1043            "ERR_TOO_MANY_RETRIES" => Some(Self::TooManyRetries),
1044            "ERR_ALIGNMENT" => Some(Self::Alignment),
1045            "ERR_CHANGE_PASSWORD" => Some(Self::ChangePassword),
1046            "ERR_REAUTHENTICATE" => Some(Self::Reauthenticate),
1047            "ERR_RELOGIN" => Some(Self::Relogin),
1048            "ERR_INVALID_URL" => Some(Self::InvalidUrl),
1049            "ERR_INVALID_STATE" => Some(Self::InvalidState),
1050            "ERR_USER_MISMATCH" => Some(Self::UserMismatch),
1051            "ERR_NOT_READY_YET" => Some(Self::NotReadyYet),
1052            "ERR_ACTIVATE_USERMGMT" => Some(Self::ActivateUsermgmt),
1053            "ERR_NO_USERMGMT" => Some(Self::NoUsermgmt),
1054            "ERR_INVALID_ENCODING" => Some(Self::InvalidEncoding),
1055            "ERR_TARGET_MISMATCH" => Some(Self::TargetMismatch),
1056            "ERR_CLIENT_IN_RO_MODE" => Some(Self::ClientInRoMode),
1057            "ERR_LICENSE_EXCEEDED" => Some(Self::LicenseExceeded),
1058            "ERR_ASYNC_EXCEPTION" => Some(Self::AsyncException),
1059            "ERR_NO_SIGNATURE" => Some(Self::NoSignature),
1060            "ERR_NET_FAILED" => Some(Self::NetFailed),
1061            "ERR_NET_NOTCONNECTED" => Some(Self::NetNotconnected),
1062            "ERR_NET_MSGSIZE" => Some(Self::NetMsgsize),
1063            "ERR_NET_NOROUTE" => Some(Self::NetNoroute),
1064            "ERR_NET_TIMEOUT" => Some(Self::NetTimeout),
1065            "ERR_NET_PKGINVALID" => Some(Self::NetPkginvalid),
1066            "ERR_SVC_PKGINVALID" => Some(Self::SvcPkginvalid),
1067            "ERR_SVC_INVALIDSERVICE" => Some(Self::SvcInvalidservice),
1068            "ERR_SVC_VERSION_MISMATCH" => Some(Self::SvcVersionMismatch),
1069            "ERR_CLNT_PKGINVALID" => Some(Self::ClntPkginvalid),
1070            "ERR_DEVS_LOGINFAILED" => Some(Self::DevsLoginfailed),
1071            "ERR_DEVS_SESSIONTIMEOUT" => Some(Self::DevsSessiontimeout),
1072            "ERR_DEVS_CHANNELCLOSED" => Some(Self::DevsChannelclosed),
1073            "ERR_CHS_CHINVALID" => Some(Self::ChsChinvalid),
1074            "ERR_CHS_TIMEOUT" => Some(Self::ChsTimeout),
1075            "ERR_CHS_PROTOCOL" => Some(Self::ChsProtocol),
1076            "ERR_CHS_CHECKSUM" => Some(Self::ChsChecksum),
1077            "ERR_CHS_MODEHOST" => Some(Self::ChsModehost),
1078            "ERR_CHS_MODEPEER" => Some(Self::ChsModepeer),
1079            "ERR_CHS_NUMCHANNELS" => Some(Self::ChsNumchannels),
1080            "ERR_CHS_CLOSED" => Some(Self::ChsClosed),
1081            "ERR_CHS_MESSAGESIZE" => Some(Self::ChsMessagesize),
1082            "ERR_CHS_REQNOTHANDLED" => Some(Self::ChsReqnothandled),
1083            "ERR_CHS_SHUTDOWN" => Some(Self::ChsShutdown),
1084            "ERR_CHS_ENCRYPTION_NOT_READY_YET" => Some(Self::ChsEncryptionNotReadyYet),
1085            "ERR_CHS_NOTSERVER" => Some(Self::ChsNotserver),
1086            "ERR_CHC_CHINVALID" => Some(Self::ChcChinvalid),
1087            "ERR_CHC_TIMEOUT" => Some(Self::ChcTimeout),
1088            "ERR_CHC_PROTOCOL" => Some(Self::ChcProtocol),
1089            "ERR_CHC_CHECKSUM" => Some(Self::ChcChecksum),
1090            "ERR_CHC_MODEHOST" => Some(Self::ChcModehost),
1091            "ERR_CHC_MODEPEER" => Some(Self::ChcModepeer),
1092            "ERR_CHC_NUMCHANNELS" => Some(Self::ChcNumchannels),
1093            "ERR_CHC_CLOSED" => Some(Self::ChcClosed),
1094            "ERR_CHC_MESSAGESIZE" => Some(Self::ChcMessagesize),
1095            "ERR_CHC_NOCHBUFFER" => Some(Self::ChcNochbuffer),
1096            "ERR_GW_INVALIDPKG" => Some(Self::GwInvalidpkg),
1097            "ERR_GW_PROTOCOL" => Some(Self::GwProtocol),
1098            "ERR_GW_VERSION" => Some(Self::GwVersion),
1099            "ERR_GW_NOAUTHMODULE" => Some(Self::GwNoauthmodule),
1100            "ERR_GW_UNKNOWNCMD" => Some(Self::GwUnknowncmd),
1101            "ERR_GW_REQCANCELED" => Some(Self::GwReqcanceled),
1102            "ERR_GW_CANCELFAILED" => Some(Self::GwCancelfailed),
1103            "ERR_GW_INVALIDCONN" => Some(Self::GwInvalidconn),
1104            "ERR_GW_NUMCONNECTIONS" => Some(Self::GwNumconnections),
1105            "ERR_GW_PARAMETER_NOT_SUPPORTED" => Some(Self::GwParameterNotSupported),
1106            "ERR_GW_COMMAND_NOT_SUPPORTED" => Some(Self::GwCommandNotSupported),
1107            "ERR_GW_CLIENT_TIMEOUT" => Some(Self::GwClientTimeout),
1108            "ERR_GW_TIMEOUT" => Some(Self::GwTimeout),
1109            "ERR_SOCK_NOTINITIALIZED" => Some(Self::SockNotinitialized),
1110            "ERR_SOCK_NOTSOCKET" => Some(Self::SockNotsocket),
1111            "ERR_SOCK_AFUNSUPPORTED" => Some(Self::SockAfunsupported),
1112            "ERR_SOCK_PROTOUNSUPPORTED" => Some(Self::SockProtounsupported),
1113            "ERR_SOCK_NOBUFFER" => Some(Self::SockNobuffer),
1114            "ERR_SOCK_WOULDBLOCK" => Some(Self::SockWouldblock),
1115            "ERR_SOCK_ADDRINUSE" => Some(Self::SockAddrinuse),
1116            "ERR_SOCK_ADDRNOTAVAILABLE" => Some(Self::SockAddrnotavailable),
1117            "ERR_SOCK_CONNREFUSED" => Some(Self::SockConnrefused),
1118            "ERR_SOCK_TIMEDOUT" => Some(Self::SockTimedout),
1119            "ERR_SOCK_HOSTNOTFOUND" => Some(Self::SockHostnotfound),
1120            "ERR_SOCK_HOSTUNREACHABLE" => Some(Self::SockHostunreachable),
1121            "ERR_SOCK_ISCONNECTED" => Some(Self::SockIsconnected),
1122            "ERR_SOCK_NOTCONNECTED" => Some(Self::SockNotconnected),
1123            "ERR_SOCK_SHUTDOWN" => Some(Self::SockShutdown),
1124            "ERR_SOCK_MSGSIZE" => Some(Self::SockMsgsize),
1125            "ERR_SOCK_CLOSED" => Some(Self::SockClosed),
1126            "ERR_L7_TAG_MISSING" => Some(Self::L7TagMissing),
1127            "ERR_L7_UNKNOWNCMDGROUP" => Some(Self::L7Unknowncmdgroup),
1128            "ERR_L7_UNKNOWNCMD" => Some(Self::L7Unknowncmd),
1129            "ERR_L7_INCOMPLETE" => Some(Self::L7Incomplete),
1130            "ERR_L7_PROTOCOLMISMATCH" => Some(Self::L7Protocolmismatch),
1131            "ERR_BTAG_TAGOVERLAP" => Some(Self::BtagTagoverlap),
1132            "ERR_BTAG_BUFFEROVERRUN" => Some(Self::BtagBufferoverrun),
1133            "ERR_BTAG_MAXNESTINGDEPTH" => Some(Self::BtagMaxnestingdepth),
1134            "ERR_BTAG_NOTAG" => Some(Self::BtagNotag),
1135            "ERR_BTAG_NODATATAG" => Some(Self::BtagNodatatag),
1136            "ERR_BTAG_NOCONTAINERTAG" => Some(Self::BtagNocontainertag),
1137            "ERR_BTAG_NOTTOPLEVEL" => Some(Self::BtagNottoplevel),
1138            "ERR_BTAG_ALIGNMENT" => Some(Self::BtagAlignment),
1139            "ERR_APP_EXISTS" => Some(Self::AppExists),
1140            "ERR_APP_NOT_EXIST" => Some(Self::AppNotExist),
1141            "ERR_APP_INVALID_SESSIONID" => Some(Self::AppInvalidSessionid),
1142            "ERR_APP_INVALID_DATAID" => Some(Self::AppInvalidDataid),
1143            "ERR_APP_NOT_LOADED" => Some(Self::AppNotLoaded),
1144            "ERR_APP_NO_SESSIONID" => Some(Self::AppNoSessionid),
1145            "ERR_APP_UNRESOLVED_REFERENCE" => Some(Self::AppUnresolvedReference),
1146            "ERR_APP_SIGNATURE_MISMATCH" => Some(Self::AppSignatureMismatch),
1147            "ERR_APP_LOAD_RETAIN_DATA_FAILED" => Some(Self::AppLoadRetainDataFailed),
1148            "ERR_APP_VERSION_MISMATCH" => Some(Self::AppVersionMismatch),
1149            "ERR_APP_RETAIN_MISMATCH" => Some(Self::AppRetainMismatch),
1150            "ERR_APP_SINGLECYCLE_ON_BREAKPOINT" => Some(Self::AppSinglecycleOnBreakpoint),
1151            "ERR_APP_CREATE_BOOTPROJECT_FAILED" => Some(Self::AppCreateBootprojectFailed),
1152            "ERR_APP_BP_CONDITION_TOO_COMPLEX" => Some(Self::AppBpConditionTooComplex),
1153            "ERR_APP_BP_BREAKPOINT_NOT_SET" => Some(Self::AppBpBreakpointNotSet),
1154            "ERR_APP_BP_INTERP_CODE_TOO_COMPLEX" => Some(Self::AppBpInterpCodeTooComplex),
1155            "ERR_APP_CREATE_BOOTPROJECT_FAILED_DISK_FULL" => {
1156                Some(Self::AppCreateBootprojectFailedDiskFull)
1157            }
1158            "ERR_APP_LOADING_CINTEGRATION_MODULES" => {
1159                Some(Self::AppLoadingCintegrationModules)
1160            }
1161            "ERR_APP_DONT_INIT_AREA" => Some(Self::AppDontInitArea),
1162            "ERR_APP_MAPPED_AREA_NOT_FOUND" => Some(Self::AppMappedAreaNotFound),
1163            "ERR_APP_SIGNATURE_MISSING" => Some(Self::AppSignatureMissing),
1164            "ERR_APP_DECRYPTION_FAILED" => Some(Self::AppDecryptionFailed),
1165            "ERR_APP_ENCRYPTION_MISSING" => Some(Self::AppEncryptionMissing),
1166            "ERR_APP_SIGNATURE_AND_ENCRYPTION_MISSING" => {
1167                Some(Self::AppSignatureAndEncryptionMissing)
1168            }
1169            "ERR_APP_BP_BREAKPOINT_NOT_DELETED" => Some(Self::AppBpBreakpointNotDeleted),
1170            "ERR_TLS_INTERNAL" => Some(Self::TlsInternal),
1171            "ERR_TLS_RAND_NOT_INIT" => Some(Self::TlsRandNotInit),
1172            "ERR_TLS_INVALID_SOCKETTYPE" => Some(Self::TlsInvalidSockettype),
1173            "ERR_TLS_ALREADY_STARTED" => Some(Self::TlsAlreadyStarted),
1174            "ERR_TLS_CONNECTION_CLOSED" => Some(Self::TlsConnectionClosed),
1175            "ERR_TLS_RETRY_OPERATION" => Some(Self::TlsRetryOperation),
1176            "ERR_TLS_IO_SYSTEM" => Some(Self::TlsIoSystem),
1177            "ERR_TLS_WANT_READ" => Some(Self::TlsWantRead),
1178            "ERR_TLS_CERT_INVALID" => Some(Self::TlsCertInvalid),
1179            "ERR_TLS_CERT_SELFSIGNED" => Some(Self::TlsCertSelfsigned),
1180            "ERR_TLS_CERT_EXPIRED" => Some(Self::TlsCertExpired),
1181            "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT" => Some(Self::CertUnableToGetIssuerCert),
1182            "ERR_CERT_UNABLE_TO_GET_CRL" => Some(Self::CertUnableToGetCrl),
1183            "ERR_CERT_UNABLE_TO_DECRYPT_CERT_SIGNATURE" => {
1184                Some(Self::CertUnableToDecryptCertSignature)
1185            }
1186            "ERR_CERT_UNABLE_TO_DECRYPT_CRL_SIGNATURE" => {
1187                Some(Self::CertUnableToDecryptCrlSignature)
1188            }
1189            "ERR_CERT_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY" => {
1190                Some(Self::CertUnableToDecodeIssuerPublicKey)
1191            }
1192            "ERR_CERT_SIGNATURE_FAILURE" => Some(Self::CertSignatureFailure),
1193            "ERR_CERT_CRL_SIGNATURE_FAILURE" => Some(Self::CertCrlSignatureFailure),
1194            "ERR_CERT_NOT_YET_VALID" => Some(Self::CertNotYetValid),
1195            "ERR_CERT_HAS_EXPIRED" => Some(Self::CertHasExpired),
1196            "ERR_CERT_CRL_NOT_YET_VALID" => Some(Self::CertCrlNotYetValid),
1197            "ERR_CERT_CRL_HAS_EXPIRED" => Some(Self::CertCrlHasExpired),
1198            "ERR_CERT_ERROR_IN_CERT_NOT_BEFORE_FIELD" => {
1199                Some(Self::CertErrorInCertNotBeforeField)
1200            }
1201            "ERR_CERT_ERROR_IN_CERT_NOT_AFTER_FIELD" => {
1202                Some(Self::CertErrorInCertNotAfterField)
1203            }
1204            "ERR_CERT_ERROR_IN_CRL_LAST_UPDATE_FIELD" => {
1205                Some(Self::CertErrorInCrlLastUpdateField)
1206            }
1207            "ERR_CERT_ERROR_IN_CRL_NEXT_UPDATE_FIELD" => {
1208                Some(Self::CertErrorInCrlNextUpdateField)
1209            }
1210            "ERR_CERT_OUT_OF_MEM" => Some(Self::CertOutOfMem),
1211            "ERR_CERT_DEPTH_ZERO_SELF_SIGNED_CERT" => {
1212                Some(Self::CertDepthZeroSelfSignedCert)
1213            }
1214            "ERR_CERT_SELF_SIGNED_CERT_IN_CHAIN" => Some(Self::CertSelfSignedCertInChain),
1215            "ERR_CERT_UNABLE_TO_GET_ISSUER_CERT_LOCALLY" => {
1216                Some(Self::CertUnableToGetIssuerCertLocally)
1217            }
1218            "ERR_CERT_UNABLE_TO_VERIFY_LEAF_SIGNATURE" => {
1219                Some(Self::CertUnableToVerifyLeafSignature)
1220            }
1221            "ERR_CERT_CHAIN_TOO_LONG" => Some(Self::CertChainTooLong),
1222            "ERR_CERT_REVOKED" => Some(Self::CertRevoked),
1223            "ERR_CERT_INVALID_CA" => Some(Self::CertInvalidCa),
1224            "ERR_CERT_PATH_LENGTH_EXCEEDED" => Some(Self::CertPathLengthExceeded),
1225            "ERR_CERT_INVALID_PURPOSE" => Some(Self::CertInvalidPurpose),
1226            "ERR_CERT_UNTRUSTED" => Some(Self::CertUntrusted),
1227            "ERR_CERT_REJECTED" => Some(Self::CertRejected),
1228            "ERR_CERT_SUBJECT_ISSUER_MISMATCH" => Some(Self::CertSubjectIssuerMismatch),
1229            "ERR_CERT_AKID_SKID_MISMATCH" => Some(Self::CertAkidSkidMismatch),
1230            "ERR_CERT_AKID_ISSUER_SERIAL_MISMATCH" => {
1231                Some(Self::CertAkidIssuerSerialMismatch)
1232            }
1233            "ERR_CERT_KEYUSAGE_NO_CERTSIGN" => Some(Self::CertKeyusageNoCertsign),
1234            "ERR_CERT_UNABLE_TO_GET_CRL_ISSUER" => Some(Self::CertUnableToGetCrlIssuer),
1235            "ERR_CERT_UNHANDLED_CRITICAL_EXTENSION" => {
1236                Some(Self::CertUnhandledCriticalExtension)
1237            }
1238            "ERR_CERT_KEYUSAGE_NO_CRL_SIGN" => Some(Self::CertKeyusageNoCrlSign),
1239            "ERR_CERT_UNHANDLED_CRITICAL_CRL_EXTENSION" => {
1240                Some(Self::CertUnhandledCriticalCrlExtension)
1241            }
1242            "ERR_CERT_INVALID_NON_CA" => Some(Self::CertInvalidNonCa),
1243            "ERR_CERT_PROXY_PATH_LENGTH_EXCEEDED" => {
1244                Some(Self::CertProxyPathLengthExceeded)
1245            }
1246            "ERR_CERT_KEYUSAGE_NO_DIGITAL_SIGNATURE" => {
1247                Some(Self::CertKeyusageNoDigitalSignature)
1248            }
1249            "ERR_CERT_PROXY_CERTIFICATES_NOT_ALLOWED" => {
1250                Some(Self::CertProxyCertificatesNotAllowed)
1251            }
1252            "ERR_CERT_INVALID_EXTENSION" => Some(Self::CertInvalidExtension),
1253            "ERR_CERT_INVALID_POLICY_EXTENSION" => Some(Self::CertInvalidPolicyExtension),
1254            "ERR_CERT_NO_EXPLICIT_POLICY" => Some(Self::CertNoExplicitPolicy),
1255            "ERR_CERT_DIFFERENT_CRL_SCOPE" => Some(Self::CertDifferentCrlScope),
1256            "ERR_CERT_UNSUPPORTED_EXTENSION_FEATURE" => {
1257                Some(Self::CertUnsupportedExtensionFeature)
1258            }
1259            "ERR_CERT_UNNESTED_RESOURCE" => Some(Self::CertUnnestedResource),
1260            "ERR_CERT_PERMITTED_VIOLATION" => Some(Self::CertPermittedViolation),
1261            "ERR_CERT_EXCLUDED_VIOLATION" => Some(Self::CertExcludedViolation),
1262            "ERR_CERT_SUBTREE_MINMAX" => Some(Self::CertSubtreeMinmax),
1263            "ERR_CERT_UNSUPPORTED_CONSTRAINT_TYPE" => {
1264                Some(Self::CertUnsupportedConstraintType)
1265            }
1266            "ERR_CERT_UNSUPPORTED_CONSTRAINT_SYNTAX" => {
1267                Some(Self::CertUnsupportedConstraintSyntax)
1268            }
1269            "ERR_CERT_UNSUPPORTED_NAME_SYNTAX" => Some(Self::CertUnsupportedNameSyntax),
1270            "ERR_CERT_CRL_PATH_VALIDATION_ERROR" => {
1271                Some(Self::CertCrlPathValidationError)
1272            }
1273            "ERR_CERT_APPLICATION_VERIFICATION" => {
1274                Some(Self::CertApplicationVerification)
1275            }
1276            "ERR_CERT_MISSING" => Some(Self::CertMissing),
1277            "ERR_CERT_UNKNOWN_ERROR" => Some(Self::CertUnknownError),
1278            "ERR_P12_UNKNOWN_ERROR" => Some(Self::P12UnknownError),
1279            "ERR_P12_MAC_INVALID" => Some(Self::P12MacInvalid),
1280            "ERR_P12_UNSUPPORTED_CIPHER" => Some(Self::P12UnsupportedCipher),
1281            "ERR_P12_UNSUPPORTED_DIGEST" => Some(Self::P12UnsupportedDigest),
1282            "ERR_P12_UNSUPPORTED_OPTION" => Some(Self::P12UnsupportedOption),
1283            "ERR_P12_PARSE_ERROR" => Some(Self::P12ParseError),
1284            "ERR_P12_KEY_NOMATCH" => Some(Self::P12KeyNomatch),
1285            "ERR_P12_NO_KEY" => Some(Self::P12NoKey),
1286            "ERR_P12_NO_CERT" => Some(Self::P12NoCert),
1287            "ERR_DMS_SERVICE_NOT_RUNNING" => Some(Self::DmsServiceNotRunning),
1288            "MONITORING_ERR_NESTING_DEPTH" => Some(Self::MonitoringErrNestingDepth),
1289            "MONITORING_ERR_NO_CONSISTENCY" => Some(Self::MonitoringErrNoConsistency),
1290            "MONITORING_ERR_BUFFERSIZE_EXCEEDED" => {
1291                Some(Self::MonitoringErrBuffersizeExceeded)
1292            }
1293            "MONITORING_ERR_INVALID_INDEX" => Some(Self::MonitoringErrInvalidIndex),
1294            "MONITORING_ERR_UNKNOWN" => Some(Self::MonitoringErrUnknown),
1295            "ERR_FT_FILE_SIZE_MISMATCH" => Some(Self::FtFileSizeMismatch),
1296            "ERR_IECVARACC_UNKNOWN_NODE_TYPE" => Some(Self::IecvaraccUnknownNodeType),
1297            "ERR_IECVARACC_NO_CHILD_NODE" => Some(Self::IecvaraccNoChildNode),
1298            "ERR_IECVARACC_CONFIG_CHANGED" => Some(Self::IecvaraccConfigChanged),
1299            "ERR_IECVARACC_SYNC_CONSISTENCY_DENIED" => {
1300                Some(Self::IecvaraccSyncConsistencyDenied)
1301            }
1302            "ERR_EDGE_INVALID_MESSAGEID" => Some(Self::EdgeInvalidMessageid),
1303            "ERR_EDGE_INVALID_STATE" => Some(Self::EdgeInvalidState),
1304            "ERR_EDGE_SESSIONID_INVALID" => Some(Self::EdgeSessionidInvalid),
1305            "ERR_EDGE_PKGINVALID" => Some(Self::EdgePkginvalid),
1306            "ERR_EDGE_NOBUFFER" => Some(Self::EdgeNobuffer),
1307            "ERR_EDGE_TIMEOUT" => Some(Self::EdgeTimeout),
1308            "ERR_EDGE_VAR_MISMATCH" => Some(Self::EdgeVarMismatch),
1309            "ERR_EDGE_PLC_NOT_CONNECTED" => Some(Self::EdgePlcNotConnected),
1310            "ERR_EDGE_PLC_NO_CYCLIC_LIST_DEFINED" => {
1311                Some(Self::EdgePlcNoCyclicListDefined)
1312            }
1313            "ERR_EDGE_COMM_FATAL" => Some(Self::EdgeCommFatal),
1314            "ERR_REDU_TOO_TAGS" => Some(Self::ReduTooTags),
1315            "ERR_REDU_MEMORY" => Some(Self::ReduMemory),
1316            "ERR_REDU_CLIENT_CREATION_ERR" => Some(Self::ReduClientCreationErr),
1317            "ERR_DM_SIG_SIG_MALFORMED_CERTIFICATE" => {
1318                Some(Self::DmSigSigMalformedCertificate)
1319            }
1320            "ERR_DM_SIG_SIG_MALFORMED_SIGNATURE" => {
1321                Some(Self::DmSigSigMalformedSignature)
1322            }
1323            "ERR_DM_SIG_SIG_MALFORMED_DIGEST" => Some(Self::DmSigSigMalformedDigest),
1324            "ERR_DM_SIG_SIG_MALFORMED_ADDITIONAL_ATTRIBUTE" => {
1325                Some(Self::DmSigSigMalformedAdditionalAttribute)
1326            }
1327            "ERR_DM_SIG_SIG_NO_SIGNERS" => Some(Self::DmSigSigNoSigners),
1328            "ERR_DM_SIG_SIG_UNKNOWN_SIG_ALGORITHM" => {
1329                Some(Self::DmSigSigUnknownSigAlgorithm)
1330            }
1331            "ERR_DM_SIG_SIG_UNKNOWN_ADDITIONAL_ATTRIBUTE" => {
1332                Some(Self::DmSigSigUnknownAdditionalAttribute)
1333            }
1334            "ERR_DM_SIG_SIG_VERIFY_ERROR" => Some(Self::DmSigSigVerifyError),
1335            "ERR_DM_SIG_SIG_DID_NOT_VERIFY" => Some(Self::DmSigSigDidNotVerify),
1336            "ERR_DM_SIG_SIG_NO_SIGNATURES" => Some(Self::DmSigSigNoSignatures),
1337            "ERR_DM_SIG_SIG_NO_SUPPORTED_SIGNATURES" => {
1338                Some(Self::DmSigSigNoSupportedSignatures)
1339            }
1340            "ERR_DM_SIG_SIG_NO_CERTIFICATES" => Some(Self::DmSigSigNoCertificates),
1341            "ERR_DM_SIG_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD" => {
1342                Some(
1343                    Self::DmSigSigPublicKeyMismatchBetweenCertificateAndSignaturesRecord,
1344                )
1345            }
1346            "ERR_DM_SIG_SIG_SIG_ALG_MISMATCH_BETWEEN_SIGNATURES_AND_DIGESTS_RECORDS" => {
1347                Some(Self::DmSigSigSigAlgMismatchBetweenSignaturesAndDigestsRecords)
1348            }
1349            "ERR_DM_SIG_SIG_CFA_DIGEST_DID_NOT_VERIFY" => {
1350                Some(Self::DmSigSigCfaDigestDidNotVerify)
1351            }
1352            "ERR_DM_SIG_CFA_SIG_BLOCK_UNKNOWN_ENTRY_ID" => {
1353                Some(Self::DmSigCfaSigBlockUnknownEntryId)
1354            }
1355            "ERR_OEM_START" => Some(Self::OemStart),
1356            "ERR_OEM_END" => Some(Self::OemEnd),
1357            _ => None,
1358        }
1359    }
1360}