package com.l7tech.external.assertions.gatewaygraphql.server.error;

import com.l7tech.objectmodel.EntityType;
import graphql.ErrorClassification;
import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.language.SourceLocation;
import java.util.Collections;
import java.util.List;
import lombok.Generated;

public class GatewayEntityMutationException extends RuntimeException implements GraphQLError {
   private final EntityType entityType;
   static final long serialVersionUID = -8960849949356894178L;

   public GatewayEntityMutationException(EntityType var1, String var2, Throwable var3) {
      super(var2, var3);
      this.entityType = var1;
   }

   public List<SourceLocation> getLocations() {
      return Collections.emptyList();
   }

   public ErrorClassification getErrorType() {
      return ErrorType.ExecutionAborted;
   }

   @Generated
   public EntityType getEntityType() {
      return this.entityType;
   }
}
