Class ConnectionClosedException
The exception that is thrown for requests that in-flight when the underlyingg websocket is closed by the server. Requests that recieve this exception will be in a non-deteministic state and may need to be retried.
Inheritance
System.Object
System.Exception
ConnectionClosedException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
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: Gremlin.Net.Driver.Exceptions
Assembly: cs.temp.dll.dll
Syntax
public class ConnectionClosedException : Exception, ISerializable, _Exception
Remarks
It is recommended to use the same request retry policy that is applied when a System.Net.WebSockets.WebSocketException, System.Net.Sockets.SocketException, System.IO.IOException.
Constructors
ConnectionClosedException(Nullable<WebSocketCloseStatus>, String)
Initializes a new instance of the ConnectionClosedException class.
Declaration
public ConnectionClosedException(WebSocketCloseStatus? status, string description)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<WebSocketCloseStatus> | status | |
System.String | description |
Properties
Description
Gets the Websocket closure description provided by the server.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Status
Gets the well-known WebSocket close status code provided by the server.
Declaration
public WebSocketCloseStatus? Status { get; }
Property Value
Type | Description |
---|---|
System.Nullable<WebSocketCloseStatus> |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception