Class 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 ([email protected])
    See Also:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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