Show / Hide Table of Contents

Class DifferentAppProtocolVersionException

The exception that is thrown when the version of the Message that Swarm received is different.

Inheritance
Object
Exception
DifferentAppProtocolVersionException
Implements
ISerializable
Inherited Members
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.Transports
Assembly: Libplanet.Net.dll
Syntax
[Serializable]
public class DifferentAppProtocolVersionException : Exception, ISerializable

Constructors

| Improve this Doc View Source

DifferentAppProtocolVersionException(SerializationInfo, StreamingContext)

The exception that is thrown when the version of the Message that Swarm received is different.

Declaration
protected DifferentAppProtocolVersionException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
| Improve this Doc View Source

DifferentAppProtocolVersionException(String, AppProtocolVersion, AppProtocolVersion, Boolean)

Initializes a new instance of the DifferentAppProtocolVersionException class.

Declaration
public DifferentAppProtocolVersionException(string message, AppProtocolVersion expectedAppProtocolVersion, AppProtocolVersion actualAppProtocolVersion, bool trusted)
Parameters
Type Name Description
String message

Specifies an Message.

AppProtocolVersion expectedAppProtocolVersion

The protocol version of the local Swarm.

AppProtocolVersion actualAppProtocolVersion

The protocol version of the BoundPeer that the local Swarm is trying to connect to.

Boolean trusted

Whether actualAppProtocolVersion is signed by a trusted signer.

Properties

| Improve this Doc View Source

ActualApv

The protocol version of the BoundPeer that the Swarm is trying to connect to.

Declaration
public AppProtocolVersion ActualApv { get; }
Property Value
Type Description
AppProtocolVersion
| Improve this Doc View Source

ExpectedApv

The protocol version of the current Swarm.

Declaration
public AppProtocolVersion ExpectedApv { get; }
Property Value
Type Description
AppProtocolVersion
| Improve this Doc View Source

Trusted

Whether ActualApv is signed by a trusted signer.

Declaration
public bool Trusted { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

The exception that is thrown when the version of the Message that Swarm received is different.

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)

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