Interface GraphQLGeneralError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLGeneralError extends GraphQLErrorObject

Returned when a server-side problem occurs before or after data persistence. In some cases, the requested action may successfully complete after the error is returned. Therefore, it is recommended to verify the status of the requested resource after receiving a 500 error.

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