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

com.marklogic.flux.impl.JdbcUtil Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
/*
 * Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
 */
package com.marklogic.flux.impl;

import com.marklogic.flux.api.FluxException;

public abstract class JdbcUtil {

    public static Exception massageException(Exception ex) {
        if (ex instanceof ClassNotFoundException) {
            return new FluxException(String.format("Unable to load class: %s; for a JDBC driver, ensure you " +
                "are specifying the fully-qualified class name for your JDBC driver.", ex.getMessage()), ex);
        }
        return ex;
    }

    private JdbcUtil() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy