string_utils_statuscode_tostring.cpp
Go to the documentation of this file.
1 //
2 // DO NOT EDIT THIS FILE!
3 // It is automatically generated from opcfoundation.org schemas.
4 //
5 
6 #include <string>
7 #include <sstream>
8 #include <iomanip>
9 
11 
12 namespace OpcUa
13 {
14 
16 {
17  if (code == StatusCode::Good)
18  {
19  return std::string();
20  }
21 
22  std::stringstream stream;
23 
24  switch (code)
25  {
27  stream << "An unexpected error occurred.";
28  break;
29 
31  stream << "An internal error occurred as a result of a programming or configuration error.";
32  break;
33 
35  stream << "Not enough memory to complete the operation.";
36  break;
37 
39  stream << "An operating system resource is not available.";
40  break;
41 
43  stream << "A low level communication error occurred.";
44  break;
45 
47  stream << "Encoding halted because of invalid data in the objects being serialized.";
48  break;
49 
51  stream << "Decoding halted because of invalid data in the stream.";
52  break;
53 
55  stream << "The message encoding/decoding limits imposed by the stack have been exceeded.";
56  break;
57 
59  stream << "The request message size exceeds limits set by the server.";
60  break;
61 
63  stream << "The response message size exceeds limits set by the client.";
64  break;
65 
67  stream << "An unrecognized response was received from the server.";
68  break;
69 
71  stream << "The operation timed out.";
72  break;
73 
75  stream << "The server does not support the requested service.";
76  break;
77 
79  stream << "The operation was cancelled because the application is shutting down.";
80  break;
81 
83  stream << "The operation could not complete because the client is not connected to the server.";
84  break;
85 
87  stream << "The server has stopped and cannot process any requests.";
88  break;
89 
91  stream << "There was nothing to do because the client passed a list of operations with no elements.";
92  break;
93 
95  stream << "The request could not be processed because it specified too many operations.";
96  break;
97 
99  stream << "The request could not be processed because there are too many monitored items in the subscription.";
100  break;
101 
103  stream << "The extension object cannot be (de)serialized because the data type id is not recognized.";
104  break;
105 
107  stream << "The certificate provided as a parameter is not valid.";
108  break;
109 
111  stream << "An error occurred verifying security.";
112  break;
113 
115  stream << "The Certificate has expired or is not yet valid.";
116  break;
117 
119  stream << "An Issuer Certificate has expired or is not yet valid.";
120  break;
121 
123  stream << "The HostName used to connect to a Server does not match a HostName in the Certificate.";
124  break;
125 
127  stream << "The URI specified in the ApplicationDescription does not match the URI in the Certificate.";
128  break;
129 
131  stream << "The Certificate may not be used for the requested operation.";
132  break;
133 
135  stream << "The Issuer Certificate may not be used for the requested operation.";
136  break;
137 
139  stream << "The Certificate is not trusted.";
140  break;
141 
143  stream << "It was not possible to determine if the Certificate has been revoked.";
144  break;
145 
147  stream << "It was not possible to determine if the Issuer Certificate has been revoked.";
148  break;
149 
151  stream << "The Certificate has been revoked.";
152  break;
153 
155  stream << "The Issuer Certificate has been revoked.";
156  break;
157 
159  stream << "User does not have permission to perform the requested operation.";
160  break;
161 
163  stream << "The user identity token is not valid.";
164  break;
165 
167  stream << "The user identity token is valid but the server has rejected it.";
168  break;
169 
171  stream << "The specified secure channel is no longer valid.";
172  break;
173 
175  stream << "The timestamp is outside the range allowed by the server.";
176  break;
177 
179  stream << "The nonce does appear to be not a random value or it is not the correct length.";
180  break;
181 
183  stream << "The session id is not valid.";
184  break;
185 
187  stream << "The session was closed by the client.";
188  break;
189 
191  stream << "The session cannot be used because ActivateSession has not been called.";
192  break;
193 
195  stream << "The subscription id is not valid.";
196  break;
197 
199  stream << "The header for the request is missing or invalid.";
200  break;
201 
203  stream << "The timestamps to return parameter is invalid.";
204  break;
205 
207  stream << "The request was cancelled by the client.";
208  break;
209 
211  stream << "The subscription was transferred to another session.";
212  break;
213 
215  stream << "The processing will complete asynchronously.";
216  break;
217 
219  stream << "Sampling has slowed down due to resource limitations.";
220  break;
221 
223  stream << "The value written was accepted but was clamped.";
224  break;
225 
227  stream << "Communication with the data source is defined";
228  break;
229 
231  stream << "Waiting for the server to obtain values from the underlying data source.";
232  break;
233 
235  stream << "The syntax of the node id is not valid.";
236  break;
237 
239  stream << "The node id refers to a node that does not exist in the server address space.";
240  break;
241 
243  stream << "The attribute is not supported for the specified Node.";
244  break;
245 
247  stream << "The syntax of the index range parameter is invalid.";
248  break;
249 
251  stream << "No data exists within the range of indexes specified.";
252  break;
253 
255  stream << "The data encoding is invalid.";
256  break;
257 
259  stream << "The server does not support the requested data encoding for the node.";
260  break;
261 
263  stream << "The access level does not allow reading or subscribing to the Node.";
264  break;
265 
267  stream << "The access level does not allow writing to the Node.";
268  break;
269 
271  stream << "The value was out of range.";
272  break;
273 
275  stream << "The requested operation is not supported.";
276  break;
277 
279  stream << "A requested item was not found or a search operation ended without success.";
280  break;
281 
283  stream << "The object cannot be used because it has been deleted.";
284  break;
285 
287  stream << "Requested operation is not implemented.";
288  break;
289 
291  stream << "The monitoring mode is invalid.";
292  break;
293 
295  stream << "The monitoring item id does not refer to a valid monitored item.";
296  break;
297 
299  stream << "The monitored item filter parameter is not valid.";
300  break;
301 
303  stream << "The server does not support the requested monitored item filter.";
304  break;
305 
307  stream << "A monitoring filter cannot be used in combination with the attribute specified.";
308  break;
309 
311  stream << "A mandatory structured parameter was missing or null.";
312  break;
313 
315  stream << "The event filter is not valid.";
316  break;
317 
319  stream << "The content filter is not valid.";
320  break;
321 
323  stream << "An unregognized operator was provided in a filter.";
324  break;
325 
327  stream << "A valid operator was provided";
328  break;
329 
331  stream << "The number of operands provided for the filter operator was less then expected for the operand provided.";
332  break;
333 
335  stream << "The operand used in a content filter is not valid.";
336  break;
337 
339  stream << "The referenced element is not a valid element in the content filter.";
340  break;
341 
343  stream << "The referenced literal is not a valid value.";
344  break;
345 
347  stream << "The continuation point provide is longer valid.";
348  break;
349 
351  stream << "The operation could not be processed because all continuation points have been allocated.";
352  break;
353 
355  stream << "The operation could not be processed because all continuation points have been allocated.";
356  break;
357 
359  stream << "The browse direction is not valid.";
360  break;
361 
363  stream << "The node is not part of the view.";
364  break;
365 
367  stream << "The ServerUri is not a valid URI.";
368  break;
369 
371  stream << "No ServerName was specified.";
372  break;
373 
375  stream << "No DiscoveryUrl was specified.";
376  break;
377 
379  stream << "The semaphore file specified by the client is not valid.";
380  break;
381 
383  stream << "The security token request type is not valid.";
384  break;
385 
387  stream << "The security mode does not meet the requirements set by the Server.";
388  break;
389 
391  stream << "The security policy does not meet the requirements set by the Server.";
392  break;
393 
395  stream << "The server has reached its maximum number of sessions.";
396  break;
397 
399  stream << "The user token signature is missing or invalid.";
400  break;
401 
403  stream << "The signature generated with the client certificate is missing or invalid.";
404  break;
405 
407  stream << "The client did not provide at least one software certificate that is valid and meets the profile requirements for the server.";
408  break;
409 
411  stream << "The Server does not support changing the user identity assigned to the session.";
412  break;
413 
415  stream << "The request was cancelled by the client with the Cancel service.";
416  break;
417 
419  stream << "The parent node id does not to refer to a valid node.";
420  break;
421 
423  stream << "The reference could not be created because it violates constraints imposed by the data model.";
424  break;
425 
427  stream << "The requested node id was reject because it was either invalid or server does not allow node ids to be specified by the client.";
428  break;
429 
431  stream << "The requested node id is already used by another node.";
432  break;
433 
435  stream << "The node class is not valid.";
436  break;
437 
439  stream << "The browse name is invalid.";
440  break;
441 
443  stream << "The browse name is not unique among nodes that share the same relationship with the parent.";
444  break;
445 
447  stream << "The node attributes are not valid for the node class.";
448  break;
449 
451  stream << "The type definition node id does not reference an appropriate type node.";
452  break;
453 
455  stream << "The source node id does not reference a valid node.";
456  break;
457 
459  stream << "The target node id does not reference a valid node.";
460  break;
461 
463  stream << "The reference type between the nodes is already defined.";
464  break;
465 
467  stream << "The server does not allow this type of self reference on this node.";
468  break;
469 
471  stream << "The reference type is not valid for a reference to a remote server.";
472  break;
473 
475  stream << "The server will not allow the node to be deleted.";
476  break;
477 
479  stream << "The server was not able to delete all target references.";
480  break;
481 
483  stream << "The server index is not valid.";
484  break;
485 
487  stream << "The view id does not refer to a valid view node.";
488  break;
489 
491  stream << "The view timestamp is not available or not supported.";
492  break;
493 
495  stream << "The view parameters are not consistent with each other.";
496  break;
497 
499  stream << "The view version is not available or not supported.";
500  break;
501 
503  stream << "The list of references may not be complete because the underlying system is not available.";
504  break;
505 
507  stream << "The server should have followed a reference to a node in a remote server but did not. The result set may be incomplete.";
508  break;
509 
511  stream << "The provided Nodeid was not a type definition nodeid.";
512  break;
513 
515  stream << "One of the references to follow in the relative path references to a node in the address space in another server.";
516  break;
517 
519  stream << "The requested operation has too many matches to return.";
520  break;
521 
523  stream << "The requested operation requires too many resources in the server.";
524  break;
525 
527  stream << "The requested operation has no match to return.";
528  break;
529 
531  stream << "The max age parameter is invalid.";
532  break;
533 
535  stream << "The history details parameter is not valid.";
536  break;
537 
539  stream << "The server does not support the requested operation.";
540  break;
541 
543  stream << "The defined timestamp to return was invalid.";
544  break;
545 
547  stream << "The server not does support writing the combination of value";
548  break;
549 
551  stream << "The value supplied for the attribute is not of the same type as the attribute's value.";
552  break;
553 
555  stream << "The method id does not refer to a method for the specified object.";
556  break;
557 
559  stream << "The client did not specify all of the input arguments for the method.";
560  break;
561 
563  stream << "The server has reached its maximum number of subscriptions.";
564  break;
565 
567  stream << "The server has reached the maximum number of queued publish requests.";
568  break;
569 
571  stream << "There is no subscription available for this session.";
572  break;
573 
575  stream << "The sequence number is unknown to the server.";
576  break;
577 
579  stream << "The requested notification message is no longer available.";
580  break;
581 
583  stream << "The Client of the current Session does not support one or more Profiles that are necessary for the Subscription.";
584  break;
585 
587  stream << "The sub-state machine is not currently active.";
588  break;
589 
591  stream << "The server cannot process the request because it is too busy.";
592  break;
593 
595  stream << "The type of the message specified in the header invalid.";
596  break;
597 
599  stream << "The SecureChannelId and/or TokenId are not currently in use.";
600  break;
601 
603  stream << "The size of the message specified in the header is too large.";
604  break;
605 
607  stream << "There are not enough resources to process the request.";
608  break;
609 
611  stream << "An internal error occurred.";
612  break;
613 
615  stream << "The Server does not recognize the QueryString specified.";
616  break;
617 
619  stream << "The request could not be sent because of a network interruption.";
620  break;
621 
623  stream << "Timeout occurred while processing the request.";
624  break;
625 
627  stream << "The secure channel has been closed.";
628  break;
629 
631  stream << "The token has expired or is not recognized.";
632  break;
633 
635  stream << "The sequence number is not valid.";
636  break;
637 
639  stream << "The applications do not have compatible protocol versions.";
640  break;
641 
643  stream << "There is a problem with the configuration that affects the usefulness of the value.";
644  break;
645 
647  stream << "The variable should receive its value from another variable";
648  break;
649 
651  stream << "There has been a failure in the device/data source that generates the value that has affected the value.";
652  break;
653 
655  stream << "There has been a failure in the sensor from which the value is derived by the device/data source.";
656  break;
657 
659  stream << "The source of the data is not operational.";
660  break;
661 
663  stream << "The deadband filter is not valid.";
664  break;
665 
667  stream << "Communication to the data source has failed. The variable value is the last value that had a good quality.";
668  break;
669 
671  stream << "Whatever was updating this value has stopped doing so.";
672  break;
673 
675  stream << "The value is an operational value that was manually overwritten.";
676  break;
677 
679  stream << "The value is an initial value for a variable that normally receives its value from another variable.";
680  break;
681 
683  stream << "The value is at one of the sensor limits.";
684  break;
685 
687  stream << "The value is outside of the range of values defined for this parameter.";
688  break;
689 
691  stream << "The value is derived from multiple sources and has less than the required number of Good sources.";
692  break;
693 
695  stream << "The value has been overridden.";
696  break;
697 
699  stream << "This Condition refresh failed";
700  break;
701 
703  stream << "This condition has already been disabled.";
704  break;
705 
707  stream << "This condition has already been enabled.";
708  break;
709 
711  stream << "Property not available";
712  break;
713 
715  stream << "The specified event id is not recognized.";
716  break;
717 
719  stream << "The event cannot be acknowledged.";
720  break;
721 
723  stream << "The dialog condition is not active.";
724  break;
725 
727  stream << "The response is not valid for the dialog.";
728  break;
729 
731  stream << "The condition branch has already been acknowledged.";
732  break;
733 
735  stream << "The condition branch has already been confirmed.";
736  break;
737 
739  stream << "The condition has already been shelved.";
740  break;
741 
743  stream << "The condition is not currently shelved.";
744  break;
745 
747  stream << "The shelving time not within an acceptable range.";
748  break;
749 
751  stream << "No data exists for the requested time range or event filter.";
752  break;
753 
755  stream << "No data found to provide upper or lower bound value.";
756  break;
757 
759  stream << "The server cannot retrieve a bound for the variable.";
760  break;
761 
763  stream << "Data is missing due to collection started/stopped/lost.";
764  break;
765 
767  stream << "Expected data is unavailable for the requested time range due to an un-mounted volume";
768  break;
769 
771  stream << "The data or event was not successfully inserted because a matching entry exists.";
772  break;
773 
775  stream << "The data or event was not successfully updated because no matching entry exists.";
776  break;
777 
779  stream << "The client requested history using a timestamp format the server does not support (i.e requested ServerTimestamp when server only supports SourceTimestamp).";
780  break;
781 
783  stream << "The data or event was successfully inserted into the historical database.";
784  break;
785 
787  stream << "The data or event field was successfully replaced in the historical database.";
788  break;
789 
791  stream << "The value is derived from multiple values and has less than the required number of Good values.";
792  break;
793 
795  stream << "No data exists for the requested time range or event filter.";
796  break;
797 
799  stream << "The data or event field was successfully replaced in the historical database.";
800  break;
801 
803  stream << "The requested number of Aggregates does not match the requested number of NodeIds.";
804  break;
805 
807  stream << "The requested Aggregate is not support by the server.";
808  break;
809 
811  stream << "The aggregate value could not be derived due to invalid data inputs.";
812  break;
813 
815  stream << "The aggregate configuration is not valid for specified node.";
816  break;
817 
819  stream << "The request pecifies fields which are not valid for the EventType or cannot be saved by the historian.";
820  break;
821 
823  stream << "The communication layer has raised an event.";
824  break;
825 
827  stream << "The system is shutting down.";
828  break;
829 
831  stream << "The operation is not finished and needs to be called again.";
832  break;
833 
835  stream << "A non-critical timeout occurred.";
836  break;
837 
839  stream << "One or more arguments are invalid.";
840  break;
841 
843  stream << "Could not establish a network connection to remote server.";
844  break;
845 
847  stream << "The server has disconnected from the client.";
848  break;
849 
851  stream << "The network connection has been closed.";
852  break;
853 
855  stream << "The operation cannot be completed because the object is closed";
856  break;
857 
859  stream << "Cannot move beyond end of the stream.";
860  break;
861 
863  stream << "No data is currently available for reading from a non-blocking stream.";
864  break;
865 
867  stream << "The asynchronous operation is waiting for a response.";
868  break;
869 
871  stream << "The asynchronous operation was abandoned by the caller.";
872  break;
873 
875  stream << "The stream did not return all data requested (possibly because it is a non-blocking stream).";
876  break;
877 
879  stream << "Non blocking behaviour is required and the operation would block.";
880  break;
881 
883  stream << "A value had an invalid syntax.";
884  break;
885 
887  stream << "The operation could not be finished because all available connections are in use.";
888  break;
889 
890  default:
891  stream << "Unknown StatusCode?";
892  break;
893  }
894 
895  stream << " (0x" << std::setfill('0') << std::setw(8) << std::hex << (unsigned)code << ")";
896 
897  return stream.str();
898 }
899 
900 } // namespace OpcUa
901 
IntFormatSpec< int, TypeSpec<'x'> > hex(int value)
OPC UA Address space part. GNU LGPL.
std::string ToString(const AttributeId &value)


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:08