Class GraphQLQueryResponse<T>
- java.lang.Object
-
- com.atlassian.confluence.rest.client.graphql.GraphQLQueryResponse<T>
-
- Direct Known Subclasses:
GraphQLRemoteChildContentServiceImpl.GraphQLQueryChildContentResponse,GraphQLRemoteContentLabelServiceImpl.GraphQLQueryLabelsResponse,GraphQLRemoteContentServiceImpl.GraphQLQueryContentResponse,GraphQLRemoteWebViewImpl.GraphQLWebItemsResponse,GraphQLRemoteWebViewImpl.GraphQLWebPanelsResponse,GraphQLRemoteWebViewImpl.GraphQLWebSectionsResponse
@Internal public class GraphQLQueryResponse<T> extends Object
The JSON response object for a graphql API.- Since:
- 6.12.0
-
-
Constructor Summary
Constructors Constructor Description GraphQLQueryResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetData()Get the response data.List<Map<String,Object>>getErrors()Get any errors that happened while executing the query.voidthrowFirstErrorIfExists()Throw an exception for the first error returned by this response.
-
-
-
Method Detail
-
getData
public T getData()
Get the response data.
-
getErrors
public List<Map<String,Object>> getErrors()
Get any errors that happened while executing the query.
-
throwFirstErrorIfExists
public void throwFirstErrorIfExists()
Throw an exception for the first error returned by this response.
-
-