Show / Hide Table of Contents

Class EvidenceException

Serves as the base class for exceptions related EvidenceBases' integrity and validity.

Inheritance
System.Object
EvidenceException
DuplicateVoteException
Namespace: Libplanet.Types.Evidence
Assembly: Libplanet.Types.dll
Syntax
public abstract class EvidenceException : Exception

Constructors

| Improve this Doc View Source

EvidenceException(SerializationInfo, StreamingContext)

Serves as the base class for exceptions related EvidenceBases' integrity and validity.

Declaration
protected EvidenceException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
| Improve this Doc View Source

EvidenceException(String, Exception)

Serves as the base class for exceptions related EvidenceBases' integrity and validity.

Declaration
protected EvidenceException(string message, Exception innerException)
Parameters
Type Name Description
System.String message
Exception innerException
| Improve this Doc View Source

EvidenceException(String)

Serves as the base class for exceptions related EvidenceBases' integrity and validity.

Declaration
protected EvidenceException(string message)
Parameters
Type Name Description
System.String message

Properties

| Improve this Doc View Source

Height

Gets the height of the block that occurred the infraction.

Declaration
public abstract long Height { get; }
Property Value
Type Description
System.Int64

Methods

| Improve this Doc View Source

CreateEvidence(IEvidenceContext)

Creates an instance of evidence.

Declaration
public EvidenceBase CreateEvidence(IEvidenceContext evidenceContext)
Parameters
Type Name Description
IEvidenceContext evidenceContext

An instance of IEvidenceContext to create the evidence.

Returns
Type Description
EvidenceBase

An instance of EvidenceBase from the EvidenceException.

| Improve this Doc View Source

OnCreateEvidence(IEvidenceContext)

Creates an instance of evidence.

Declaration
protected abstract EvidenceBase OnCreateEvidence(IEvidenceContext evidenceContext)
Parameters
Type Name Description
IEvidenceContext evidenceContext

An instance of IEvidenceContext to create the evidence.

Returns
Type Description
EvidenceBase

An instance of EvidenceBase from the EvidenceException.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium