Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Exception
    ConnectionClosedException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    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: 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?

    Implements

    ISerializable
    In this article
    Back to top Copyright © 2018 The Apache Software Foundation