Class InvalidBlockProtocolVersionException
The exception that is thrown when a Block<T>'s ProtocolVersion (or a BlockHeader's ProtocolVersion) is invalid.
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public sealed class InvalidBlockProtocolVersionException : InvalidBlockException
Constructors
| Improve this Doc View SourceInvalidBlockProtocolVersionException(Int32, String)
Initializes a new instance of InvalidBlockProtocolVersionException class.
Declaration
public InvalidBlockProtocolVersionException(int actualProtocolVersion, string message)
Parameters
Type | Name | Description |
---|---|---|
Int32 | actualProtocolVersion | The actual block protocol version which is invalid. |
String | message | The message that describes the error. |
Properties
| Improve this Doc View SourceActualProtocolVersion
The actual block protocol version which is invalid.
Declaration
public int ActualProtocolVersion { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |