com.marklogic.flux.impl.JdbcUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flux-api Show documentation
Show all versions of flux-api Show documentation
Flux API for data movement with MarkLogic
/*
* 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() {
}
}