Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349366 - CloneOperation throws generic JGitInternalException instead of specific exception
Summary: CloneOperation throws generic JGitInternalException instead of specific excep...
Status: RESOLVED WORKSFORME
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-06-14 15:29 EDT by Andrew Robinson CLA
Modified: 2015-03-08 18:06 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Robinson CLA 2011-06-14 15:29:09 EDT
Build Identifier: M20110210-1200

When CloneOperation fails it throws a JGitInternalException, it would be more useful in error handling if it threw the more specific errors directly. (e.g. NoRemoteRepositoryException, NotSupportedException)

Reproducible: Always

Steps to Reproduce:
N/A
Comment 1 Tomasz Zarna CLA 2015-03-08 18:06:05 EDT
If you meant org.eclipse.jgit.api.CloneCommand I believe this has been already fixed. While looking at the current master, I can see that the command can throw either a TransportException, InvalidRemoteException or a subclass of GitAPIException. Please reopen if it none of them work for you.