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

graphql.execution.preparsed.persisted.PersistedQueryIdInvalid Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.execution.preparsed.persisted;

import graphql.PublicApi;

import java.util.LinkedHashMap;
import java.util.Map;

@PublicApi
public class PersistedQueryIdInvalid extends PersistedQueryError {
    private final Object persistedQueryId;

    public PersistedQueryIdInvalid(Object persistedQueryId) {
        this.persistedQueryId = persistedQueryId;
    }

    @Override
    public String getMessage() {
        return "PersistedQueryIdInvalid";
    }

    public Object getPersistedQueryId() {
        return persistedQueryId;
    }

    @Override
    public String toString() {
        return "PersistedQueryIdInvalid";
    }

    public Map getExtensions() {
        LinkedHashMap extensions = new LinkedHashMap<>();
        extensions.put("persistedQueryId", getPersistedQueryId());
        return extensions;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy