Show / Hide Table of Contents

Class InvalidTxNonceException

The exception that is thrown when the Nonce is different from GetNextTxNonce(Address) result of the Signer.

Inheritance
Object
InvalidTxException
InvalidTxNonceException
Inherited Members
InvalidTxException.TxId
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
public sealed class InvalidTxNonceException : InvalidTxException

Constructors

| Improve this Doc View Source

InvalidTxNonceException(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
String message

The message that describes the error.

TxId txid

The invalid Transaction<T>'s Id. It is automatically included to the string.

Int64 expectedNonce

GetNextTxNonce(Address) result of the Signer.

Int64 improperNonce

The actual Nonce.

Properties

| Improve this Doc View Source

ExpectedNonce

GetNextTxNonce(Address) result of the Signer.

Declaration
public long ExpectedNonce { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

ImproperNonce

The actual Nonce, which is improper.

Declaration
public long ImproperNonce { get; }
Property Value
Type Description
Int64
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium