Interface GraphQLExtensionBadResponseError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLExtensionBadResponseError extends GraphQLErrorObject

Returned when the response from the API Extension could not be parsed successfully (such as a 500 HTTP status code, or an invalid JSON response).


Example to create an instance using the builder pattern

     GraphQLExtensionBadResponseError graphQLExtensionBadResponseError = GraphQLExtensionBadResponseError.builder()
             .plusExtensionErrors(extensionErrorsBuilder -> extensionErrorsBuilder)
             .extensionId("{extensionId}")
             .build()
 
  • Field Details

    • EXTENSION_BAD_RESPONSE

      static final String EXTENSION_BAD_RESPONSE
      discriminator value for GraphQLExtensionBadResponseError
      See Also:
  • Method Details

    • getCode

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

      One of the error codes that is listed on the Errors page.

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

      @Valid @Valid LocalizedString getLocalizedMessage()

      User-defined localized description of the error.

      Returns:
      localizedMessage
    • getExtensionExtraInfo

      @Valid @Valid Object getExtensionExtraInfo()

      Any information that should be returned to the API caller.

      Returns:
      extensionExtraInfo
    • getExtensionErrors

      @NotNull @Valid @NotNull @Valid List<ExtensionError> getExtensionErrors()

      Additional errors related to the API Extension.

      Returns:
      extensionErrors
    • getExtensionBody

      String getExtensionBody()

      The response body returned by the Extension.

      Returns:
      extensionBody
    • getExtensionStatusCode

      Integer getExtensionStatusCode()

      Http status code returned by the Extension.

      Returns:
      extensionStatusCode
    • getExtensionId

      @NotNull @NotNull String getExtensionId()

      Unique identifier of the Extension.

      Returns:
      extensionId
    • getExtensionKey

      String getExtensionKey()

      User-defined unique identifier of the Extension.

      Returns:
      extensionKey
    • setLocalizedMessage

      void setLocalizedMessage(LocalizedString localizedMessage)

      User-defined localized description of the error.

      Parameters:
      localizedMessage - value to be set
    • setExtensionExtraInfo

      void setExtensionExtraInfo(Object extensionExtraInfo)

      Any information that should be returned to the API caller.

      Parameters:
      extensionExtraInfo - value to be set
    • setExtensionErrors

      void setExtensionErrors(ExtensionError... extensionErrors)

      Additional errors related to the API Extension.

      Parameters:
      extensionErrors - values to be set
    • setExtensionErrors

      void setExtensionErrors(List<ExtensionError> extensionErrors)

      Additional errors related to the API Extension.

      Parameters:
      extensionErrors - values to be set
    • setExtensionBody

      void setExtensionBody(String extensionBody)

      The response body returned by the Extension.

      Parameters:
      extensionBody - value to be set
    • setExtensionStatusCode

      void setExtensionStatusCode(Integer extensionStatusCode)

      Http status code returned by the Extension.

      Parameters:
      extensionStatusCode - value to be set
    • setExtensionId

      void setExtensionId(String extensionId)

      Unique identifier of the Extension.

      Parameters:
      extensionId - value to be set
    • setExtensionKey

      void setExtensionKey(String extensionKey)

      User-defined unique identifier of the Extension.

      Parameters:
      extensionKey - value to be set
    • of

      factory method
      Returns:
      instance of GraphQLExtensionBadResponseError
    • of

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

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

      builder factory method for GraphQLExtensionBadResponseError
      Returns:
      builder
    • builder

      create builder for GraphQLExtensionBadResponseError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLExtensionBadResponseError

      default <T> T withGraphQLExtensionBadResponseError(Function<GraphQLExtensionBadResponseError,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<GraphQLExtensionBadResponseError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference