diff options
author | Robin Rosenberg | 2012-05-30 00:24:18 +0000 |
---|---|---|
committer | Matthias Sohn | 2012-05-30 00:24:18 +0000 |
commit | bda268636a1de7077bd28484a201988883bae1c9 (patch) | |
tree | 7342fbd4f90001ec3de5b98b31c177d0370707f6 /org.eclipse.egit.core/src/org/eclipse/egit/core/op/FetchOperation.java | |
parent | 64417af7a7e0d74ee423d6642d40a5116f584fe1 (diff) | |
download | egit-bda268636a1de7077bd28484a201988883bae1c9.tar.gz egit-bda268636a1de7077bd28484a201988883bae1c9.tar.xz egit-bda268636a1de7077bd28484a201988883bae1c9.zip |
Git API does not declare GitAPIException call() and related changes
Anyone that calls a Git API should catch GitAPIException and not just
the currently known exceptions.
During the process of cleaning this up a number of cases, but not all
cases, where only checked exceptions are thrown, are changed to
catch all Exceptions except Error.
This changes adapt EGit to changes made in JGit for this reason.
Bug: 366914
JGit-Change-Id: I50380f13fc82c22d0036f47c7859cc3a77e767c5
Change-Id: I4de4902003a9f306912475e8b15b1e72d43e7475
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.core/src/org/eclipse/egit/core/op/FetchOperation.java')
-rw-r--r-- | org.eclipse.egit.core/src/org/eclipse/egit/core/op/FetchOperation.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/FetchOperation.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/FetchOperation.java index 56281d308a..fa6950ed94 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/FetchOperation.java +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/FetchOperation.java @@ -17,7 +17,6 @@ import org.eclipse.egit.core.CoreText; import org.eclipse.egit.core.EclipseGitProgressTransformer; import org.eclipse.jgit.api.FetchCommand; import org.eclipse.jgit.api.Git; -import org.eclipse.jgit.api.errors.InvalidRemoteException; import org.eclipse.jgit.api.errors.JGitInternalException; import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.transport.CredentialsProvider; @@ -129,7 +128,7 @@ public class FetchOperation { } catch (JGitInternalException e) { throw new InvocationTargetException(e.getCause() != null ? e .getCause() : e); - } catch (InvalidRemoteException e) { + } catch (Exception e) { throw new InvocationTargetException(e); } } |