Class GraphQLExceptionWhileDataFetching

java.lang.Object
graphql.ExceptionWhileDataFetching
io.smallrye.graphql.execution.error.GraphQLExceptionWhileDataFetching
All Implemented Interfaces:
graphql.GraphQLError, Serializable

public class GraphQLExceptionWhileDataFetching extends graphql.ExceptionWhileDataFetching
Simple way to override the message to only use the original exception message
Author:
Phillip Kruger (phillip.kruger@redhat.com)
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface graphql.GraphQLError

    graphql.GraphQLError.Builder<B extends graphql.GraphQLError.Builder<B>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraphQLExceptionWhileDataFetching(graphql.execution.ResultPath path, Throwable exception, graphql.language.SourceLocation sourceLocation)
     
    GraphQLExceptionWhileDataFetching(String message, graphql.execution.ResultPath path, Throwable exception, graphql.language.SourceLocation sourceLocation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    int
     

    Methods inherited from class graphql.ExceptionWhileDataFetching

    getErrorType, getException, getExtensions, getLocations, getPath, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface graphql.GraphQLError

    toSpecification
  • Constructor Details

    • GraphQLExceptionWhileDataFetching

      public GraphQLExceptionWhileDataFetching(graphql.execution.ResultPath path, Throwable exception, graphql.language.SourceLocation sourceLocation)
    • GraphQLExceptionWhileDataFetching

      public GraphQLExceptionWhileDataFetching(String message, graphql.execution.ResultPath path, Throwable exception, graphql.language.SourceLocation sourceLocation)
  • Method Details

    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface graphql.GraphQLError
      Overrides:
      getMessage in class graphql.ExceptionWhileDataFetching
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class graphql.ExceptionWhileDataFetching
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class graphql.ExceptionWhileDataFetching