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

org.jfrog.build.util.VersionException Maven / Gradle / Ivy

package org.jfrog.build.util;

/**
 * Special checked exception to hold relevant information of version resolution failures
 *
 * @author Noam Y. Tenne
 */
public class VersionException extends Exception {

    private VersionCompatibilityType versionCompatibilityType;

    public VersionException(String message, VersionCompatibilityType versionCompatibilityType) {
        super(message);
        this.versionCompatibilityType = versionCompatibilityType;
    }

    public VersionException(String message, Throwable cause, VersionCompatibilityType versionCompatibilityType) {
        super(message, cause);
        this.versionCompatibilityType = versionCompatibilityType;
    }

    public VersionCompatibilityType getVersionCompatibilityType() {
        return versionCompatibilityType;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy