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

io.polyapi.plugin.error.classloader.QualifiedNameNotFoundException Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package io.polyapi.plugin.error.classloader;

import io.polyapi.commons.api.error.PolyApiException;
import lombok.Getter;

/**
 * Exception thrown when the qualified name for a class is not found.
 */
@Getter
public class QualifiedNameNotFoundException extends PolyApiException {
    private final String qualifiedName;

    /**
     * Constructor that sets the qualified name and adds a message around it.
     *
     * @param qualifiedName The qualified name that wasn't found.
     * @param cause         The exception that caused this one.
     */
    public QualifiedNameNotFoundException(String qualifiedName, Throwable cause) {
        super("Class not found: " + qualifiedName + ". Make sure you have compiled your project.", cause);
        this.qualifiedName = qualifiedName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy