Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349366

Summary: CloneOperation throws generic JGitInternalException instead of specific exception
Product: [Technology] JGit Reporter: Andrew Robinson <arobinso>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: robin, tomasz.zarna
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.