Class InvalidBlockTxCountException
An exception thrown when the count of Transactions
does not follow the constraint provided by
Inheritance
InvalidBlockTxCountException
Implements
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.Data
System.Exception.HResult
System.Exception.TargetSite
System.Object.GetHashCode()
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public sealed class InvalidBlockTxCountException : BlockPolicyViolationException, ISerializable
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 |
|---|---|---|
| System.String | message | The message that describes the error. |
| System.Int32 | txCount | The invalid count of Transactions
according to |
Properties
| Improve this Doc View SourceTxCount
An exception thrown when the count of Transactions
does not follow the constraint provided by
Declaration
public int TxCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
An exception thrown when the count of Transactions
does not follow the constraint provided by
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| StreamingContext | context |
Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)