Class InvalidBlockHashAlgorithmTypeException
An exception thrown when HashAlgorithm does not match the one provided by IBlockPolicy<T>.
Inheritance
InvalidBlockHashAlgorithmTypeException
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public sealed class InvalidBlockHashAlgorithmTypeException : BlockPolicyViolationException
Constructors
| Improve this Doc View SourceInvalidBlockHashAlgorithmTypeException(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 SourceHashAlgorithmName
Declaration
public string HashAlgorithmName { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |