Show / Hide Table of Contents

Class InvalidTxGenesisHashException

The exception that is thrown when the GenesisHash is different from the HashDigest<T> of Genesis.

Inheritance
Object
Exception
InvalidTxException
InvalidTxGenesisHashException
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.Tx
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class InvalidTxGenesisHashException : InvalidTxException, ISerializable

Constructors

| Improve this Doc View Source

InvalidTxGenesisHashException(TxId, BlockHash, Nullable<BlockHash>, String)

Initializes a new instance of the InvalidTxGenesisHashException class.

Declaration
public InvalidTxGenesisHashException(TxId txid, BlockHash expectedGenesisHash, BlockHash? improperGenesisHash, string message)
Parameters
Type Name Description
TxId txid

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

BlockHash expectedGenesisHash

The HashDigest<T> value of Genesis.

Nullable<BlockHash> improperGenesisHash

The actual GenesisHash. This can be null.

String message

The message that describes the error.

Properties

| Improve this Doc View Source

ExpectedGenesisHash

The HashDigest<T> value of Genesis.

Declaration
public BlockHash ExpectedGenesisHash { get; }
Property Value
Type Description
BlockHash
| Improve this Doc View Source

ImproperGenesisHash

The actual GenesisHash, which is improper.

Declaration
public BlockHash? ImproperGenesisHash { get; }
Property Value
Type Description
Nullable<BlockHash>

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

ExtractableException.ExtractMetadata(Exception)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium