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 GraphQLErrorLocationBuilderbuilder()builder factory method for GraphQLErrorLocationstatic GraphQLErrorLocationBuilderbuilder(GraphQLErrorLocation template) create builder for GraphQLErrorLocation instancecopyDeep()static GraphQLErrorLocationdeepCopy(GraphQLErrorLocation template) factory method to create a deep copy of GraphQLErrorLocation@NotNull LongPosition inlinewhere the error occurred.@NotNull LonggetLine()Line number of the query where the error occurred.static GraphQLErrorLocationof()factory methodstatic GraphQLErrorLocationof(GraphQLErrorLocation template) factory method to create a shallow copy GraphQLErrorLocationvoidPosition inlinewhere the error occurred.voidLine 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> TwithGraphQLErrorLocation(Function<GraphQLErrorLocation, T> helper) accessor map function
-
Method Details
-
getLine
Line number of the query where the error occurred.
- Returns:
- line
-
getColumn
Position in
linewhere the error occurred.- Returns:
- column
-
setLine
Line number of the query where the error occurred.
- Parameters:
line- value to be set
-
setColumn
Position in
linewhere 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
-
copyDeep
GraphQLErrorLocation copyDeep() -
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
-