Class InvalidBlockPublicKeyException
An exception thrown when a block's public key is invalid.
Implements
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.Data
System.Exception.HResult
System.Exception.TargetSite
System.Object.GetHashCode()
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public class InvalidBlockPublicKeyException : InvalidBlockException, ISerializable
Constructors
| Improve this Doc View SourceInvalidBlockPublicKeyException(SerializationInfo, StreamingContext)
An exception thrown when a block's public key is invalid.
Declaration
protected InvalidBlockPublicKeyException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| StreamingContext | context |
InvalidBlockPublicKeyException(String, PublicKey)
Creates a new InvalidBlockPublicKeyException instance.
Declaration
public InvalidBlockPublicKeyException(string message, PublicKey invalidPublicKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | A message that describes the error. |
| PublicKey | invalidPublicKey | The invalid public key tried to be used in the block. |
Properties
| Improve this Doc View SourceInvalidPublicKey
The invalid public key tried to be used in the block.
Declaration
[Pure]
public PublicKey InvalidPublicKey { get; }
Property Value
| Type | Description |
|---|---|
| PublicKey |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
An exception thrown when a block's public key is invalid.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| StreamingContext | context |
Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)