Class InvalidBlockTxCountException
An exception thrown when the count of Transactions does not follow the constraint provided by IBlockPolicy<T>.
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public sealed class InvalidBlockTxCountException : BlockPolicyViolationException
Constructors
| Improve this Doc View SourceInvalidBlockTxCountException(String, Int32)
Initializes a new instance of InvalidBlockTxCountException class.
Declaration
public InvalidBlockTxCountException(string message, int txCount)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Int32 | txCount | The invalid count of Transactions according to IBlockPolicy<T>. |
Properties
| Improve this Doc View SourceTxCount
Declaration
public int TxCount { get; }
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 |