org.apache.tinkerpop.gremlin.driver.message

## Class ResponseStatus

- java.lang.Object
- - org.apache.tinkerpop.gremlin.driver.message.ResponseStatus

-     public final class ResponseStatus
      extends Object

  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResponseStatus(ResponseStatusCode code, String message, Map<String,Object> attributes)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Object>` | `getAttributes()` Gets the meta-data related to the response.
    `ResponseStatusCode` | `getCode()` Gets the `ResponseStatusCode` that describes how the server responded to the request.
    `String` | `getMessage()` Gets the message associated with the code.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ResponseStatus

          public ResponseStatus(ResponseStatusCode code,
                                String message,
                                Map<String,Object> attributes)

  - ### Method Detail

    - #### getCode

          public ResponseStatusCode getCode()

      Gets the `ResponseStatusCode` that describes how the server responded to the request.

    - #### getMessage

          public String getMessage()

      Gets the message associated with the code.

    - #### getAttributes

          public Map<String,Object> getAttributes()

      Gets the meta-data related to the response. If meta-data is returned it is to be considered specific to the "op" that is executed. Not all "op" implementations will return meta-data.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2013–2021 Apache Software Foundation. All rights reserved.