Package graphql.introspection
Class GoodFaithIntrospection.BadFaithIntrospectionError
- java.lang.Object
-
- graphql.introspection.GoodFaithIntrospection.BadFaithIntrospectionError
-
- All Implemented Interfaces:
GraphQLError
,java.io.Serializable
- Enclosing class:
- GoodFaithIntrospection
public static class GoodFaithIntrospection.BadFaithIntrospectionError extends java.lang.Object implements GraphQLError
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorClassification
getErrorType()
java.util.List<SourceLocation>
getLocations()
java.lang.String
getMessage()
static GoodFaithIntrospection.BadFaithIntrospectionError
tooBigOperation(java.lang.String message)
static GoodFaithIntrospection.BadFaithIntrospectionError
tooManyFields(java.lang.String fieldCoordinate)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface graphql.GraphQLError
getExtensions, getPath, toSpecification
-
-
-
-
Method Detail
-
tooManyFields
public static GoodFaithIntrospection.BadFaithIntrospectionError tooManyFields(java.lang.String fieldCoordinate)
-
tooBigOperation
public static GoodFaithIntrospection.BadFaithIntrospectionError tooBigOperation(java.lang.String message)
-
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage
in interfaceGraphQLError
- Returns:
- a description of the error intended for the developer as a guide to understand and correct the error
-
getErrorType
public ErrorClassification getErrorType()
- Specified by:
getErrorType
in interfaceGraphQLError
- Returns:
- an object classifying this error
-
getLocations
public java.util.List<SourceLocation> getLocations()
- Specified by:
getLocations
in interfaceGraphQLError
- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocation
describes the beginning of an associated syntax element
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-