Skip to content

Commit

Permalink
TEIIDDES-1518: Remove pointless use of AdminException
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Richardson committed Dec 7, 2012
1 parent da1cbb3 commit 4c332b4
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.eclipse.datatools.connectivity.ProfileManager;
import org.eclipse.osgi.util.NLS;
import org.teiid.adminapi.Admin;
import org.teiid.adminapi.AdminException;
import org.teiid.adminapi.AdminFactory;
import org.teiid.adminapi.PropertyDefinition;
import org.teiid.adminapi.Translator;
Expand Down Expand Up @@ -417,7 +416,7 @@ private void deployJars(Admin admin, String jarList) {
}
try {
admin.deploy(fileName, iStream);
} catch (AdminException ex) {
} catch (Exception ex) {
// Jar deployment failed
Util.log(IStatus.ERROR, ex, NLS.bind(Messages.JarDeploymentFailed, theFile.getPath()));
}
Expand Down Expand Up @@ -741,9 +740,6 @@ private IStatus pingJdbc() {
}
admin.close();
}
} catch (AdminException ex) {
String msg = Util.getString("serverDeployUndeployProblemPingingTeiidJdbc", url); //$NON-NLS-1$
return new Status(IStatus.ERROR, PLUGIN_ID, msg, ex);
} catch (Exception ex) {
String msg = Util.getString("serverDeployUndeployProblemPingingTeiidJdbc", url); //$NON-NLS-1$
return new Status(IStatus.ERROR, PLUGIN_ID, msg, ex);
Expand Down

0 comments on commit 4c332b4

Please sign in to comment.