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 ErrorClassificationgetErrorType()java.util.List<SourceLocation>getLocations()java.lang.StringgetMessage()static GoodFaithIntrospection.BadFaithIntrospectionErrortooBigOperation(java.lang.String message)static GoodFaithIntrospection.BadFaithIntrospectionErrortooManyFields(java.lang.String fieldCoordinate)java.lang.StringtoString()-
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:
getMessagein 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:
getErrorTypein interfaceGraphQLError- Returns:
- an object classifying this error
-
getLocations
public java.util.List<SourceLocation> getLocations()
- Specified by:
getLocationsin interfaceGraphQLError- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocationdescribes the beginning of an associated syntax element
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-