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

com.oembedler.moon.graphql.boot.error.ErrorHandlerSupplier Maven / Gradle / Ivy

There is a newer version: 5.6.1
Show newest version
package com.oembedler.moon.graphql.boot.error;

import graphql.servlet.GraphQLErrorHandler;

import java.util.Objects;
import java.util.function.Supplier;

public class ErrorHandlerSupplier implements Supplier {

    private GraphQLErrorHandler errorHandler;

    public ErrorHandlerSupplier(GraphQLErrorHandler errorHandler) {
        this.errorHandler = errorHandler;
    }

    @Override
    public GraphQLErrorHandler get() {
        return errorHandler;
    }

    public void setErrorHandler(GraphQLErrorHandler errorHandler) {
        this.errorHandler = Objects.requireNonNull(errorHandler);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy