Class ConnectionClosedException
The exception that is thrown for requests that in-flight when the underlying websocket is closed by the server. Requests that receive this exception will be in a non-deterministic state and may need to be retried.
Implements
Inherited Members
Namespace: Gremlin.Net.Driver.Exceptions
Assembly: Gremlin.Net.dll
Syntax
public class ConnectionClosedException : Exception, ISerializable
Remarks
It is recommended to use the same request retry policy that is applied when a WebSocketException, SocketException, IOException.
Constructors
ConnectionClosedException(WebSocketCloseStatus?, string?)
Initializes a new instance of the ConnectionClosedException class.
Declaration
public ConnectionClosedException(WebSocketCloseStatus? status, string? description)
Parameters
Type | Name | Description |
---|---|---|
WebSocketCloseStatus? | status | |
string | description |
Properties
Description
Gets the Websocket closure description provided by the server.
Declaration
public string? Description { get; }
Property Value
Type | Description |
---|---|
string |
Status
Gets the well-known WebSocket close status code provided by the server.
Declaration
public WebSocketCloseStatus? Status { get; }
Property Value
Type | Description |
---|---|
WebSocketCloseStatus? |