Show / Hide Table of Contents

Class InvalidBlockHashAlgorithmTypeException

An exception thrown when HashAlgorithm does not match the one provided by IBlockPolicy<T>.

Inheritance
Object
InvalidBlockException
BlockPolicyViolationException
InvalidBlockHashAlgorithmTypeException
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public sealed class InvalidBlockHashAlgorithmTypeException : BlockPolicyViolationException

Constructors

| Improve this Doc View Source

InvalidBlockHashAlgorithmTypeException(String, HashAlgorithmType)

Initializes a new instance of InvalidBlockTxCountException class.

Declaration
public InvalidBlockHashAlgorithmTypeException(string message, HashAlgorithmType hashAlgorithm)
Parameters
Type Name Description
String message

The message that describes the error.

HashAlgorithmType hashAlgorithm

The invalid HashAlgorithm according to IBlockPolicy<T>.

Properties

| Improve this Doc View Source

HashAlgorithmName

Declaration
public string HashAlgorithmName { get; }
Property Value
Type Description
String

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
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium