Class InvalidProposalException
An exception thrown when a received Proposal is invalid. In particular, this is thrown pre-emptively before a Proposal 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 InvalidProposalException : Exception, ISerializable
Constructors
| Improve this Doc View SourceInvalidProposalException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidConsensusMessageException class with serialized data.
Declaration
protected InvalidProposalException(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. |
InvalidProposalException(String, Proposal, Exception)
Initializes a new instance of InvalidConsensusMessageException class.
Declaration
public InvalidProposalException(string message, Proposal proposal, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Proposal | proposal | The Proposal that caused this exception. |
Exception | innerException | The exception that is the cause of the current exception. |
InvalidProposalException(String, Proposal)
Initializes a new instance of InvalidConsensusMessageException class.
Declaration
public InvalidProposalException(string message, Proposal proposal)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Proposal | proposal | The Proposal that caused this exception. |
Properties
| Improve this Doc View SourceProposal
An exception thrown when a received Proposal is invalid. In particular, this is thrown pre-emptively before a Proposal is processed, i.e. does not change the state of a Context in a meaningful way.
Declaration
public Proposal Proposal { get; }
Property Value
Type | Description |
---|---|
Proposal |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
An exception thrown when a received Proposal is invalid. In particular, this is thrown pre-emptively before a Proposal 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 |