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

net.java.ao.builder.UnloadableJdbcDriverException Maven / Gradle / Ivy

There is a newer version: 6.1.1
Show newest version
package net.java.ao.builder;

import net.java.ao.ActiveObjectsException;

import static com.google.common.base.Preconditions.checkNotNull;

public class UnloadableJdbcDriverException extends ActiveObjectsException {
    private final String driverClassName;

    public UnloadableJdbcDriverException(String driverClassName) {
        this(driverClassName, null);
    }

    public UnloadableJdbcDriverException(String driverClassName, Throwable t) {
        super(t);
        this.driverClassName = checkNotNull(driverClassName);
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    @Override
    public String getMessage() {
        return "Could not load JDBC driver <" + driverClassName + ">";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy