Show / Hide Table of Contents

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 .

Inheritance
System.Object
InvalidTxException
InvalidTxNonceException
Inherited Members
InvalidTxException.TxId
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.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
System.String message

The message that describes the error.

TxId txId

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

System.Int64 expectedNonce

The expected Nonce value for the Transaction.

System.Int64 improperNonce

The actual Nonce.

Properties

| Improve this Doc View Source

ExpectedNonce

The expected Nonce value for the Transaction with TxId as its Id.

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

ImproperNonce

The actual Nonce, which is improper.

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