Class InvalidVoteException
An exception thrown when a received Vote is invalid. In particular, this is thrown pre-emptively before a Vote is processed, i.e. does not change the state of a Context in a meaningful way.
Implements
Inherited Members
Namespace: Libplanet.Net.Consensus
Assembly: Libplanet.Net.dll
Syntax
[Serializable]
public class InvalidVoteException : Exception, ISerializable
Constructors
| Improve this Doc View SourceInvalidVoteException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidConsensusMessageException class with serialized data.
Declaration
protected InvalidVoteException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
InvalidVoteException(String, Vote, Exception)
Initializes a new instance of InvalidConsensusMessageException class.
Declaration
public InvalidVoteException(string message, Vote vote, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Vote | vote | The Vote that caused this exception. |
Exception | innerException | The exception that is the cause of the current exception. |
InvalidVoteException(String, Vote)
Initializes a new instance of InvalidConsensusMessageException class.
Declaration
public InvalidVoteException(string message, Vote vote)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Vote | vote | The Vote that caused this exception. |
Properties
| Improve this Doc View SourceVote
An exception thrown when a received Vote is invalid. In particular, this is thrown pre-emptively before a Vote is processed, i.e. does not change the state of a Context in a meaningful way.
Declaration
public Vote Vote { get; }
Property Value
Type | Description |
---|---|
Vote |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
An exception thrown when a received Vote is invalid. In particular, this is thrown pre-emptively before a Vote is processed, i.e. does not change the state of a Context in a meaningful way.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |