Class DifferentAppProtocolVersionException
The exception that is thrown when the version of the Peer that Swarm is trying to connect to is different.
Implements
Inherited Members
Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class DifferentAppProtocolVersionException : Exception, ISerializable
Constructors
| Improve this Doc View SourceDifferentAppProtocolVersionException(String, Int32, Int32)
Initializes a new instance of the DifferentAppProtocolVersionException class.
Declaration
public DifferentAppProtocolVersionException(string message, int expectedVersion, int actualVersion)
Parameters
Type | Name | Description |
---|---|---|
String | message | Specifies an Message. |
Int32 | expectedVersion | The protocol version of the current Swarm. |
Int32 | actualVersion | The protocol version of the Peer that Swarm is trying to connect to. |
Properties
| Improve this Doc View SourceActualVersion
Declaration
public int ActualVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |
ExpectedVersion
The protocol version of the current Swarm.
Declaration
public int ExpectedVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |