Class DuplicateVoteException
An exception thrown when a duadskf Vote is invalid. In particular,
this is thrown pre-emptively before a Vote is processed, i.e.
does not change the state of a
Inherited Members
Namespace: Libplanet.Types.Evidence
Assembly: Libplanet.Types.dll
Syntax
public class DuplicateVoteException : EvidenceException
Constructors
| Improve this Doc View SourceDuplicateVoteException(SerializationInfo, StreamingContext)
Initializes a new instance of the
Declaration
protected DuplicateVoteException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The |
StreamingContext | context | The |
DuplicateVoteException(String, Vote, Vote, Exception)
Initializes a new instance of
Declaration
public DuplicateVoteException(string message, Vote voteRef, Vote voteDup, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
Vote | voteRef | The 1Vote that caused this exception. |
Vote | voteDup | The 2Vote that caused this exception. |
Exception | innerException | The exception that is the cause of the current exception. |
DuplicateVoteException(String, Vote, Vote)
Initializes a new instance of
Declaration
public DuplicateVoteException(string message, Vote voteRef, Vote voteDup)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
Vote | voteRef | The Vote that caused this exception. |
Vote | voteDup | The 1Vote that caused this exception. |
Properties
| Improve this Doc View SourceHeight
An exception thrown when a duadskf Vote is invalid. In particular,
this is thrown pre-emptively before a Vote is processed, i.e.
does not change the state of a
Declaration
public override long Height { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceVoteDup
An exception thrown when a duadskf Vote is invalid. In particular,
this is thrown pre-emptively before a Vote is processed, i.e.
does not change the state of a
Declaration
public Vote VoteDup { get; }
Property Value
Type | Description |
---|---|
Vote |
VoteRef
An exception thrown when a duadskf Vote is invalid. In particular,
this is thrown pre-emptively before a Vote is processed, i.e.
does not change the state of a
Declaration
public Vote VoteRef { get; }
Property Value
Type | Description |
---|---|
Vote |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
An exception thrown when a duadskf Vote is invalid. In particular,
this is thrown pre-emptively before a Vote is processed, i.e.
does not change the state of a
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
OnCreateEvidence(IEvidenceContext)
An exception thrown when a duadskf Vote is invalid. In particular,
this is thrown pre-emptively before a Vote is processed, i.e.
does not change the state of a
Declaration
protected override EvidenceBase OnCreateEvidence(IEvidenceContext evidenceContext)
Parameters
Type | Name | Description |
---|---|---|
IEvidenceContext | evidenceContext |
Returns
Type | Description |
---|---|
EvidenceBase |