Class ResponseStatus
Represents status information of a ResponseMessage<T>.
Implements
Inherited Members
Namespace: Gremlin.Net.Driver.Messages
Assembly: Gremlin.Net.dll
Syntax
public record ResponseStatus : IEquatable<ResponseStatus>
Constructors
ResponseStatus(ResponseStatusCode, Dictionary<string, object>?, string?)
Initializes a new instance of the ResponseStatus record.
Declaration
public ResponseStatus(ResponseStatusCode code, Dictionary<string, object>? attributes = null, string? message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ResponseStatusCode | code | The ResponseStatusCode. |
| Dictionary<string, object> | attributes | The (optional) attributes with protocol-level information. |
| string | message | The (optional) message which is just a human-readable string usually associated with errors. |
Properties
Attributes
Gets the attributes Dictionary<TKey, TValue> with protocol-level information.
Declaration
public Dictionary<string, object> Attributes { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, object> |
Code
Gets the ResponseStatusCode.
Declaration
public ResponseStatusCode Code { get; }
Property Value
| Type | Description |
|---|---|
| ResponseStatusCode |
Message
Gets the message which is just a human-readable string usually associated with errors.
Declaration
public string? Message { get; }
Property Value
| Type | Description |
|---|---|
| string |