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

graphql.schema.CoercingSerializeException Maven / Gradle / Ivy

The newest version!
package graphql.schema;

import graphql.ErrorClassification;
import graphql.ErrorType;
import graphql.GraphqlErrorException;
import graphql.PublicApi;

@PublicApi
public class CoercingSerializeException extends GraphqlErrorException {

    public CoercingSerializeException() {
        this(newCoercingSerializeException());
    }

    public CoercingSerializeException(String message) {
        this(newCoercingSerializeException().message(message));
    }

    public CoercingSerializeException(String message, Throwable cause) {
        this(newCoercingSerializeException().message(message).cause(cause));
    }

    public CoercingSerializeException(Throwable cause) {
        this(newCoercingSerializeException().cause(cause));
    }

    private CoercingSerializeException(Builder builder) {
        super(builder);
    }

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

    public static Builder newCoercingSerializeException() {
        return new Builder();
    }

    public static class Builder extends BuilderBase {
        public CoercingSerializeException build() {
            return new CoercingSerializeException(this);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy