Package graphql.schema.idl.errors
Class BaseError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- graphql.GraphQLException
-
- graphql.schema.idl.errors.BaseError
-
- All Implemented Interfaces:
GraphQLError
,java.io.Serializable
- Direct Known Subclasses:
DirectiveIllegalArgumentTypeError
,DirectiveIllegalLocationError
,DirectiveIllegalReferenceError
,DirectiveMissingNonNullArgumentError
,DirectiveRedefinitionError
,DirectiveUndeclaredError
,DirectiveUnknownArgumentError
,IllegalNameError
,InterfaceFieldArgumentNotOptionalError
,InterfaceFieldArgumentRedefinitionError
,InterfaceFieldRedefinitionError
,InterfaceImplementedMoreThanOnceError
,InterfaceImplementingItselfError
,InterfaceWithCircularImplementationHierarchyError
,MissingInterfaceFieldArgumentsError
,MissingInterfaceFieldError
,MissingInterfaceTypeError
,MissingScalarImplementationError
,MissingTransitiveInterfaceError
,MissingTypeError
,MissingTypeResolverError
,NonSDLDefinitionError
,NonUniqueArgumentError
,NonUniqueDirectiveError
,NonUniqueNameError
,NotAnInputTypeError
,NotAnOutputTypeError
,OperationRedefinitionError
,OperationTypesMustBeObjects
,QueryOperationMissingError
,SchemaMissingError
,SchemaRedefinitionError
,TypeExtensionDirectiveRedefinitionError
,TypeExtensionEnumValueRedefinitionError
,TypeExtensionFieldRedefinitionError
,TypeExtensionMissingBaseTypeError
,TypeRedefinitionError
,UnionTypeError
class BaseError extends GraphQLException implements GraphQLError
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
-
-
Field Summary
Fields Modifier and Type Field Description protected static SourceLocation
NO_WHERE
private Node
node
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
ErrorType
getErrorType()
java.util.List<SourceLocation>
getLocations()
int
hashCode()
static java.lang.String
lineCol(Node node)
java.lang.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface graphql.GraphQLError
getExtensions, getMessage, getPath, toSpecification
-
-
-
-
Field Detail
-
NO_WHERE
protected static final SourceLocation NO_WHERE
-
node
private final Node node
-
-
Constructor Detail
-
BaseError
public BaseError(Node node, java.lang.String msg)
-
-
Method Detail
-
lineCol
public static java.lang.String lineCol(Node node)
-
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
-
getErrorType
public ErrorType getErrorType()
- Specified by:
getErrorType
in interfaceGraphQLError
- Returns:
- an object classifying this error
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-