Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ public static String createSIARD(String uniqueId, ConnectionParameters connectio
try {
SiardControllerHelper.setupPathToDriver(connectionParameters);
} catch (Exception e) {
LOGGER.warn(e.getMessage(), e);
throw new GenericException("Could not load the driver", e);
}

Expand Down Expand Up @@ -1104,6 +1105,7 @@ private static void setupJDBCConnection(final DatabaseMigration databaseMigratio
try {
SiardControllerHelper.setupPathToDriver(parameters);
} catch (Exception e) {
LOGGER.warn(e.getMessage(), e);
throw new GenericException("Could not load the driver", e);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @author Miguel Guimarães <mguimaraes@keep.pt>
*/
public class SiardControllerHelper {
private static final Logger LOGGER = LoggerFactory.getLogger(SiardControllerHelper.class);

public static String buildModuleConfigurationForSIARD(String siardVersion, String siardPath,
TableAndColumnsParameters tableAndColumnsParameters) throws GenericException {
try {
Expand Down Expand Up @@ -124,6 +128,7 @@ private static void buildImportModuleConfiguration(ModuleConfiguration moduleCon
try {
setupPathToDriver(connectionParameters);
} catch (Exception e) {
LOGGER.warn(e.getMessage(), e);
throw new GenericException("Could not load the driver", e);
}
}
Expand Down