Class InvalidTxNonceException
An exception that is thrown when the Nonce
of a Transaction included in a Block
is inconsistent with the expected nonce for the Signer
when appending to a
Implements
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.HResult
System.Exception.TargetSite
System.Object.GetHashCode()
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public sealed class InvalidTxNonceException : InvalidTxException, ISerializable
Constructors
| Improve this Doc View SourceInvalidTxNonceException(String, TxId, Int64, Int64)
Initializes a new instance of the InvalidTxNonceException class.
Declaration
public InvalidTxNonceException(string message, TxId txId, long expectedNonce, long improperNonce)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message that describes the error. |
| TxId | txId | The invalid Transaction's Id. It is automatically included to the Message string. |
| Int64 | expectedNonce | The expected Nonce value for the Transaction. |
| Int64 | improperNonce | The actual Nonce. |
Properties
| Improve this Doc View SourceExpectedNonce
The expected Nonce value for the Transaction with TxId as its Id.
Declaration
public long ExpectedNonce { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
ImproperNonce
The actual Nonce, which is improper.
Declaration
public long ImproperNonce { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |