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

com.google.inject.internal.ErrorsException Maven / Gradle / Ivy

package com.google.inject.internal;

/**
 * Indicates that a result could not be returned while preparing or resolving a binding. The caller
 * should {@link Errors#merge(Errors) merge} the errors from this exception with their existing
 * errors.
 */
@SuppressWarnings("serial")
public class ErrorsException extends Exception {

    // NOTE: this is used by Gin which is abandoned.  So changing this API will prevent Gin users from
    // upgrading Guice version.

    private final Errors errors;

    public ErrorsException(Errors errors) {
        this.errors = errors;
    }

    public Errors getErrors() {
        return errors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy