Class InvalidConsensusMessageException
An exception thrown when a received ConsensusMsg is invalid. In particular, this is thrown pre-emptively before a ConsensusMsg 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 InvalidConsensusMessageException : InvalidMessageContentException, ISerializable
Constructors
| Improve this Doc View SourceInvalidConsensusMessageException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidConsensusMessageException class with serialized data.
Declaration
protected InvalidConsensusMessageException(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. |
InvalidConsensusMessageException(String, MessageContent, Exception)
Initializes a new instance of InvalidConsensusMessageException class.
Declaration
public InvalidConsensusMessageException(string message, MessageContent receivedMessage, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
MessageContent | receivedMessage | The ConsensusMsg that caused this exception. |
Exception | innerException | The exception that is the cause of the current exception. |
InvalidConsensusMessageException(String, MessageContent)
Initializes a new instance of InvalidConsensusMessageException class.
Declaration
public InvalidConsensusMessageException(string message, MessageContent receivedMessage)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
MessageContent | receivedMessage | The ConsensusMsg that caused this exception. |