Class DifferentAppProtocolVersionException
The exception that is thrown when the version of the Peer that Swarm<T> is trying to connect to is different.
Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
public sealed class DifferentAppProtocolVersionException : Exception
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 |
Int32 | expectedVersion | The protocol version of the current Swarm<T>. |
Int32 | actualVersion | The protocol version of the Peer that Swarm<T> 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<T>.
Declaration
public int ExpectedVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |