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

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

Go to download

This is the full Active Objects library, if you don't know which one to use, you probably want this one.

The newest version!
package net.java.ao.builder;

import net.java.ao.ActiveObjectsException;

import java.util.Objects;


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 = Objects.requireNonNull(driverClassName,"driverClassName can't be null");
    }

    public String getDriverClassName() {
        return driverClassName;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy