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(String, Int32)
Initializes a new instance of InvalidBlockProtocolVersionException class.
Declaration
public InvalidBlockProtocolVersionException(string message, int actualProtocolVersion)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Int32 | actualProtocolVersion | The actual block protocol version which is invalid. |
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 |