Class InvalidBlockProtocolVersionException
The exception that is thrown when a Block's ProtocolVersion (or a BlockHeader's ProtocolVersion) is invalid.
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.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 |
---|---|---|
System.String | message | The message that describes the error. |
System.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 |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
The exception that is thrown when a Block's ProtocolVersion (or a BlockHeader's ProtocolVersion) is invalid.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |