Class ValidationError

    • Constructor Detail

      • ValidationError

        @Deprecated(since="2022-07-10",
                    forRemoval=true)
        public ValidationError​(ValidationErrorClassification validationErrorType)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ValidationError

        @Deprecated(since="2022-07-10",
                    forRemoval=true)
        public ValidationError​(ValidationErrorClassification validationErrorType,
                               SourceLocation sourceLocation,
                               java.lang.String description)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ValidationError

        @Deprecated(since="2022-07-10",
                    forRemoval=true)
        public ValidationError​(ValidationErrorType validationErrorType,
                               SourceLocation sourceLocation,
                               java.lang.String description,
                               java.util.List<java.lang.String> queryPath)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ValidationError

        @Deprecated(since="2022-07-10",
                    forRemoval=true)
        public ValidationError​(ValidationErrorType validationErrorType,
                               java.util.List<SourceLocation> sourceLocations,
                               java.lang.String description)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ValidationError

        @Deprecated(since="2022-07-10",
                    forRemoval=true)
        public ValidationError​(ValidationErrorType validationErrorType,
                               java.util.List<SourceLocation> sourceLocations,
                               java.lang.String description,
                               java.util.List<java.lang.String> queryPath)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Specified by:
        getMessage in interface GraphQLError
        Returns:
        a description of the error intended for the developer as a guide to understand and correct the error
      • getDescription

        public java.lang.String getDescription()
      • getLocations

        public java.util.List<SourceLocation> getLocations()
        Specified by:
        getLocations in interface GraphQLError
        Returns:
        the location(s) within the GraphQL document at which the error occurred. Each SourceLocation describes the beginning of an associated syntax element
      • getQueryPath

        public java.util.List<java.lang.String> getQueryPath()
      • getExtensions

        public java.util.Map<java.lang.String,​java.lang.Object> getExtensions()
        Specified by:
        getExtensions in interface GraphQLError
        Returns:
        a map of error extensions or null if there are none
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object