Show / Hide Table of Contents

Class InvalidBlockPreEvaluationHashException

The exception that is thrown when the a Block<T>'s PreEvaluationHash is invalid.

Inheritance
Object
Exception
InvalidBlockException
InvalidBlockPreEvaluationHashException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
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.Blocks
Assembly: Libplanet.dll
Syntax
[Serializable]
public class InvalidBlockPreEvaluationHashException : InvalidBlockException, ISerializable

Constructors

| Improve this Doc View Source

InvalidBlockPreEvaluationHashException(ImmutableArray<Byte>, ImmutableArray<Byte>, String)

Initializes a new instance of the InvalidBlockPreEvaluationHashException class.

Declaration
public InvalidBlockPreEvaluationHashException(ImmutableArray<byte> actualPreEvaluationHash, ImmutableArray<byte> expectedPreEvaluationHash, string message)
Parameters
Type Name Description
ImmutableArray<Byte> actualPreEvaluationHash

The hash recorded as PreEvaluationHash.

ImmutableArray<Byte> expectedPreEvaluationHash

The hash calculated from the block except StateRootHash.

String message

The message that describes the error.

Properties

| Improve this Doc View Source

ActualPreEvaluationHash

The hash calculated from the block except StateRootHash.

Declaration
[Pure]
public ImmutableArray<byte> ActualPreEvaluationHash { get; }
Property Value
Type Description
ImmutableArray<Byte>
| Improve this Doc View Source

ExpectedPreEvaluationHash

The hash recorded as PreEvaluationHash.

Declaration
[Pure]
public ImmutableArray<byte> ExpectedPreEvaluationHash { get; }
Property Value
Type Description
ImmutableArray<Byte>

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)

Operators

| Improve this Doc View Source

Equality(InvalidBlockPreEvaluationHashException, InvalidBlockPreEvaluationHashException)

Declaration
public static bool operator ==(InvalidBlockPreEvaluationHashException left, InvalidBlockPreEvaluationHashException right)
Parameters
Type Name Description
InvalidBlockPreEvaluationHashException left
InvalidBlockPreEvaluationHashException right
Returns
Type Description
Boolean
| Improve this Doc View Source

Inequality(InvalidBlockPreEvaluationHashException, InvalidBlockPreEvaluationHashException)

Declaration
public static bool operator !=(InvalidBlockPreEvaluationHashException left, InvalidBlockPreEvaluationHashException right)
Parameters
Type Name Description
InvalidBlockPreEvaluationHashException left
InvalidBlockPreEvaluationHashException right
Returns
Type Description
Boolean

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