PLCnext API Documentation 25.0.2.69
RscError.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Core/Enum.hxx"
9
10namespace Arp::Base::Rsc::Commons
11{
12
14enum class RscError
15{
16 None = 0,
17 Unspecified = 0x00000001,
18 ConnectFailed = 0x00000002,
19 InvalidOperation = 0x00000003,
20 InvalidServiceState = 0x20000004,
21 InternalError = 0x2000000A,
22 ClientCallFailed = 0x2000000B,
23 IpcCallFailed = 0x2000000D,
24 InvalidServiceData = 0x2000000F,
25 UnknownMethodHandle = 0x40000003,
26 ProtocolViolation = 0x40000007,
27 AuthorizationFailure = 0x4000000B,
28 InvalidArgumentOccurs = 0x523,
29};
30
32// global stream operators of enum RscError for logging and parsing
33ARP_EXPORT std::ostream& operator<<(std::ostream& os, RscError value);
34ARP_EXPORT std::istream& operator>>(std::istream& is, RscError& value);
35
36} // end of namespace Arp::Base::Rsc::Commons
37
39template<> struct fmt::formatter<Arp::Base::Rsc::Commons::RscError> : public fmt::ostream_formatter {};
Root namespace for the PLCnext API