Class EvidenceException
Serves as the base class for exceptions related EvidenceBases' integrity and validity.
Namespace: Libplanet.Types.Evidence
Assembly: Libplanet.Types.dll
Syntax
public abstract class EvidenceException : Exception
Constructors
| Improve this Doc View SourceEvidenceException(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 |
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 |
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 SourceHeight
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 SourceCreateEvidence(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. |
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. |