All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.execution.error.RenderableNonNullableFieldWasNullError Maven / Gradle / Ivy

The newest version!
package graphql.kickstart.execution.error;

import com.fasterxml.jackson.annotation.JsonInclude;
import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.execution.NonNullableFieldWasNullError;
import graphql.language.SourceLocation;
import java.util.List;
import java.util.Map;

class RenderableNonNullableFieldWasNullError implements GraphQLError {

  private final NonNullableFieldWasNullError delegate;

  public RenderableNonNullableFieldWasNullError(
      NonNullableFieldWasNullError nonNullableFieldWasNullError) {
    this.delegate = nonNullableFieldWasNullError;
  }

  @Override
  public String getMessage() {
    return delegate.getMessage();
  }

  @Override
  @JsonInclude(JsonInclude.Include.NON_NULL)
  public List getLocations() {
    return delegate.getLocations();
  }

  @Override
  public ErrorType getErrorType() {
    return delegate.getErrorType();
  }

  @Override
  public List getPath() {
    return delegate.getPath();
  }

  @Override
  public Map toSpecification() {
    return delegate.toSpecification();
  }

  @Override
  @JsonInclude(JsonInclude.Include.NON_NULL)
  public Map getExtensions() {
    return delegate.getExtensions();
  }
}