Interface GraphQLErrorLocation
public interface GraphQLErrorLocation
Represents the location within your query where the error occurred.
Example to create an instance using the builder pattern
GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
.line(0.3)
.column(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQLErrorLocationBuilder
builder()
builder factory method for GraphQLErrorLocationstatic GraphQLErrorLocationBuilder
builder
(GraphQLErrorLocation template) create builder for GraphQLErrorLocation instancestatic GraphQLErrorLocation
deepCopy
(GraphQLErrorLocation template) factory method to create a deep copy of GraphQLErrorLocation@NotNull Long
Position inline
where the error occurred.@NotNull Long
getLine()
Line number of the query where the error occurred.static GraphQLErrorLocation
of()
factory methodstatic GraphQLErrorLocation
of
(GraphQLErrorLocation template) factory method to create a shallow copy GraphQLErrorLocationvoid
Position inline
where the error occurred.void
Line number of the query where the error occurred.static com.fasterxml.jackson.core.type.TypeReference<GraphQLErrorLocation>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLErrorLocation
(Function<GraphQLErrorLocation, T> helper) accessor map function
-
Method Details
-
getLine
Line number of the query where the error occurred.
- Returns:
- line
-
getColumn
Position in
line
where the error occurred.- Returns:
- column
-
setLine
Line number of the query where the error occurred.
- Parameters:
line
- value to be set
-
setColumn
Position in
line
where the error occurred.- Parameters:
column
- value to be set
-
of
factory method- Returns:
- instance of GraphQLErrorLocation
-
of
factory method to create a shallow copy GraphQLErrorLocation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLErrorLocation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLErrorLocation- Returns:
- builder
-
builder
create builder for GraphQLErrorLocation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLErrorLocation
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-