Show / Hide Table of Contents

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.

Inheritance
Object
Exception
InvalidMessageContentException
InvalidConsensusMessageException
Implements
ISerializable
Inherited Members
InvalidMessageContentException.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Net.Consensus
Assembly: Libplanet.Net.dll
Syntax
[Serializable]
public class InvalidConsensusMessageException : InvalidMessageContentException, ISerializable

Constructors

| Improve this Doc View Source

InvalidConsensusMessageException(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

ExtractableException.ExtractMetadata(Exception)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium