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
Object
Exception
InvalidTxException
InvalidTxNonceException
Implements
ISerializable
Inherited Members
InvalidTxException.TxId
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public sealed class InvalidTxNonceException : InvalidTxException, ISerializable

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'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 Source

ExpectedNonce

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

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

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium