-
Notifications
You must be signed in to change notification settings - Fork 14
/
IceRpcError.cs
56 lines (41 loc) · 2.09 KB
/
IceRpcError.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) ZeroC, Inc.
namespace IceRpc;
/// <summary>The errors carried by an <see cref="IceRpcException" />.</summary>
public enum IceRpcError
{
/// <summary>An uncategorized IceRpc error.</summary>
IceRpcError = -1,
/// <summary>The listener local address is in use.</summary>
AddressInUse = 1,
/// <summary>The connection was aborted, typically by the peer. The abort can also be caused by a network failure,
/// such as an intermediary router going down.</summary>
ConnectionAborted,
/// <summary>The peer closed the connection without reporting any error.</summary>
ConnectionClosedByPeer,
/// <summary>The connection was idle and timed-out.</summary>
ConnectionIdle,
/// <summary>The peer refused the connection.</summary>
ConnectionRefused,
/// <summary>The invocation was canceled: the invoker read the payload of the request but the request was not
/// dispatched at all by the server.</summary>
InvocationCanceled,
/// <summary>The invocation was refused because the invoker (for example a connection) is closed or shutting down or
/// no longer available prior to the start of this invocation. The payload of the request was not read at all by
/// the invoker.</summary>
InvocationRefused,
/// <summary>A limit was exceeded, such as the <see cref="ConnectionOptions.MaxIceRpcHeaderSize" /> sent by the peer
/// during connection establishment.</summary>
LimitExceeded,
/// <summary>An invoker failed to send a request because it could not locate a connection.</summary>
NoConnection,
/// <summary>The operation was aborted because an underlying resource (connection, stream) was disposed while this
/// operation was running.</summary>
OperationAborted,
/// <summary>The server rejected the connection establishment attempt because it already has too many connections.
/// </summary>
ServerBusy,
/// <summary>The server is unreachable.</summary>
ServerUnreachable,
/// <summary>The reading of a transport stream completed with incomplete data.</summary>
TruncatedData,
}