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

io.github.amayaframework.di.ArtifactNotFoundException Maven / Gradle / Ivy

Go to download

A framework responsible for monitoring and automating the dependency injection process.

There is a newer version: 2.2.0
Show newest version
package io.github.amayaframework.di;

/**
 * Thrown to indicate that the dependency specialized by the specified artifact was not found.
 */
public class ArtifactNotFoundException extends RuntimeException {
    private final Artifact artifact;

    /**
     * Constructs an {@link ArtifactNotFoundException} with the missing artifact.
     *
     * @param artifact the missing artifact
     */
    public ArtifactNotFoundException(Artifact artifact) {
        super("The artifact was not found");
        this.artifact = artifact;
    }

    /**
     * Returns missing artifact.
     *
     * @return missing artifact
     */
    public Artifact getArtifact() {
        return artifact;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy