Class InvalidBlockProtocolVersionException
The exception that is thrown when a Block's ProtocolVersion (or a BlockHeader's ProtocolVersion) is invalid.
Implements
Inherited Members
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public sealed class InvalidBlockProtocolVersionException : InvalidBlockException, ISerializable
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)
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 |