PLCnext API Documentation 23.0.2.9
RscErrors.h
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
7
9
10namespace Arp { namespace System { namespace Rsc { namespace Services
11{
12
13enum class RscErrors : uint32
14{
15 None = 0,
16
17 // masks
18 CommunicationLayerMask = 0x80000000,
19 RemotingLayerMask = 0x40000000,
20 CommonServiceLayerMask = 0x20000000,
21 ServiceLayerMask = 0x00000000,
22
23 // communication layer
24 ServerAuthenticationFailure = 0x80000001, // If the device (server) provides wrong authentication to the application (client) then this error code is used at the client side.
25 FatalAuthorizationFailure = 0x80000002,
26
27 // remoting layer
28 InvalidProtocolVersion = 0x40000001,
29 UnknownServiceHandle = 0x40000002,
30 UnknownMethodHandle = 0x40000003,
31 InvalidCommand = 0x40000004,
32 HeaderXsumError = 0x40000005,
33 UnknownProviderHandle = 0x40000006,
34 ProtocolViolation = 0x40000007,
35 InternalRemotingError = 0x40000008,
36 ArrayLengthOutOfRange = 0x40000009,
37 MaxConnectionsExceeds = 0x4000000A,
38 AuthorizationFailure = 0x4000000B,
39
40 // internally handled by runtime
41 AbortRequest = 0x40001000,
42 RecvTimeout = 0x40001001,
43 RecvFailed = 0x40001002,
44 SendTimeout = 0x40001003,
45 SendFailed = 0x40001004,
46 UnknownObjectFormat = 0x40001005,
47 ConnRemotelyClosed = 0x40001006,
48
49 // common service errors
50 OutOfMemory = 0x20000001,
51 InvalidHandle = 0x20000002,
52 ParameterOutOfRange = 0x20000003,
53 InvalidServiceState = 0x20000004,
54 OtherMasterActive = 0x20000005,
55 NoProgramOnTheDevice = 0x20000006,
56 ExecutionError = 0x20000007,
57 ReadOnly = 0x20000008,
58 InvalidEclrState = 0x20000009,
59 InternalError = 0x2000000A,
60 AuthenticationFailure = 0x2000000B, // BasicSecurityService, SecurityService
61 Exception = 0x2000000C,
62 IpcError = 0x2000000D,
63 NotSupportedInterface = 0x2000000E,
64 InvalidData = 0x2000000F,
65 PrematurelyEndOfStream = 0x20000010, // currently: client-side error code
66
67 // SecuritySessionInfoService (TODO: move this to appropiate place)
68 ServiceProviderNameTooLong = 0x521,
69 ServiceNameTooLong = 0x522,
70 ArgumentsNotSupported = 0x523,
71};
72
73
74}}}} // end of namespace Arp::System::Rsc::Services
75
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:35
@ InternalError
An internal occured. See log for more details.
@ System
System components used by the System, Device, Plc or Io domains.
@ OutOfMemory
Not enough memory available.
Root namespace for the PLCnext API