Interface GraphQLGeneralError

All Superinterfaces:
GraphQLErrorObject
All Known Implementing Classes:
GraphQLGeneralErrorImpl

public interface GraphQLGeneralError extends GraphQLErrorObject

Returned when a server-side problem occurs.

If you encounter this error, report it using the Support Portal.


Example to create an instance using the builder pattern

     GraphQLGeneralError graphQLGeneralError = GraphQLGeneralError.builder()
             .build()
 
  • Field Details

  • Method Details

    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: GraphQLErrorObject

      Error identifier.

      Specified by:
      getCode in interface GraphQLErrorObject
      Returns:
      code
    • of

      static GraphQLGeneralError of()
      factory method
      Returns:
      instance of GraphQLGeneralError
    • of

      factory method to create a shallow copy GraphQLGeneralError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of GraphQLGeneralError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static GraphQLGeneralErrorBuilder builder()
      builder factory method for GraphQLGeneralError
      Returns:
      builder
    • builder

      create builder for GraphQLGeneralError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLGeneralError

      default <T> T withGraphQLGeneralError(Function<GraphQLGeneralError,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GraphQLGeneralError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference