PLCnext API Documentation 25.0.2.69
ErrorCode.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Core/Enum.hxx"
9
10// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
11
13{
14
18enum class ErrorCode : uint8
19{
23 None = 0,
24
28 NoSuchSession = 1,
29
34
39
43 AlreadyExists = 4,
44
48 OutOfMemory = 5,
49
53 NotSupported = 6,
54
58 NoData = 7,
59
66
70 InvalidConfig = 9,
71
75 Exception = 10,
76
80 Unspecified = 255,
81};
82
84// global stream operators of enum ErrorCode for logging and parsing
85ARP_EXPORT std::ostream& operator<<(std::ostream& os, ErrorCode value);
86ARP_EXPORT std::istream& operator>>(std::istream& is, ErrorCode& value);
87
88} // end of namespace Arp::Services::DataLogger::Services
89
91// template specialization of ErrorCode formatter
92template<> struct fmt::formatter<Arp::Services::DataLogger::Services::ErrorCode> : public fmt::ostream_formatter {};
This is the base class of all Arp exception classes.
Definition: Exception.hpp:21
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
Namespace for services of the DataLogger
ErrorCode
Possible error codes for data-logger rsc services.
Definition: ErrorCode.hpp:19
@ NoSuchSession
The specified session does not exist.
@ SessionRunning
The specified session is in running state.
@ NoSuchVariable
The specified variable does not exists.
@ NoData
No data exists for the requested time range
@ DataUnavailable
Expected data is unavailable for the requested time range due to an unmounted volume an off-line arch...
Root namespace for the PLCnext API