Class ProtocolException
Exception thrown when there are protocol-related errors like deserialization, request message received when response is expected
Inheritance
System.Object
System.Exception
ProtocolException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX.Glue
Assembly: NFX.dll
Syntax
[Serializable]
public class ProtocolException : GlueException, ISerializable
Constructors
ProtocolException(Boolean)
Declaration
public ProtocolException(bool closeChannel = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | closeChannel |
ProtocolException(SerializationInfo, StreamingContext)
Declaration
protected ProtocolException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
ProtocolException(String, Boolean)
Declaration
public ProtocolException(string message, bool closeChannel = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Boolean | closeChannel |
ProtocolException(String, Exception, Boolean)
Declaration
public ProtocolException(string message, Exception inner, bool closeChannel = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | inner | |
System.Boolean | closeChannel |
Fields
CLOSE_CHANNEL_FLD_NAME
Declaration
public const string CLOSE_CHANNEL_FLD_NAME = "PE-CC"
Field Value
Type | Description |
---|---|
System.String |
Properties
CloseChannel
Returns true when error is not recoverable on the existing channel and it needs to be closed
Declaration
public bool CloseChannel { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Overrides
Implements
System.Runtime.Serialization.ISerializable