Class ResponseException
The exception that is thrown when a response is received from Gremlin Server that indicates that an error occurred.
Implements
Inherited Members
Namespace: Gremlin.Net.Driver.Exceptions
Assembly: Gremlin.Net.dll
Syntax
public class ResponseException : Exception, ISerializable
Constructors
ResponseException(ResponseStatusCode, IReadOnlyDictionary<string, object>, string)
Initializes a new instance of the ResponseException class.
Declaration
public ResponseException(ResponseStatusCode statusCode, IReadOnlyDictionary<string, object> statusAttributes, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ResponseStatusCode | statusCode | The status code returned by the server. |
| IReadOnlyDictionary<string, object> | statusAttributes | The status attributes from the gremlin response. |
| string | message | The error message string. |
Properties
StatusAttributes
Gets the status attributes from the gremlin response
Declaration
public IReadOnlyDictionary<string, object> StatusAttributes { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, object> |
StatusCode
Gets the status code returned from the server.
Declaration
public ResponseStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| ResponseStatusCode |