Skip to content

Commit

Permalink
JBIDE-17704: Just catch everything
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Sep 11, 2014
1 parent 4f0c473 commit e99efc6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
Expand All @@ -21,7 +20,6 @@

import javax.inject.Inject;

import org.hibernate.HibernateException;
import org.jboss.forge.addon.convert.Converter;
import org.jboss.forge.addon.database.tools.jpa.HibernateDialect;
import org.jboss.forge.addon.resource.FileResource;
Expand Down Expand Up @@ -157,7 +155,7 @@ public void validate(UIValidationContext context)
DriverManager.deregisterDriver(driver);
}
}
catch (SQLException | HibernateException | InstantiationException | IllegalAccessException e)
catch (Exception e)
{
log.log(Level.INFO, "Connection failed: " + properties, e);
context.addValidationError(context.getCurrentInputComponent(),
Expand Down

0 comments on commit e99efc6

Please sign in to comment.