Class DifferentAppProtocolVersionException
The exception that is thrown when the version of the Peer that Swarm<T> is trying to connect to is different.
Inheritance
System.Object
DifferentAppProtocolVersionException
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 |
---|---|---|
System.String | message | Specifies an |
System.Int32 | expectedVersion | The protocol version of the current Swarm<T>. |
System.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 |
---|---|
System.Int32 |
ExpectedVersion
The protocol version of the current Swarm<T>.
Declaration
public int ExpectedVersion { get; }
Property Value
Type | Description |
---|---|
System.Int32 |