Community
Participate
Working Groups
When a TransportException [1] is thrown from TransportHttp.connect(String) there is no way to determine the cause other than checking the message the exception brings. As long as JGitText was public this could be (arguably) acceptable, however once JGitText became an internal class [2] this is a no-go for clients like Orion (see bug 374204). There are at least two ways of fixing this: * Provide subclasses of TransportException. This one seems to fit the current JGit design better, there are already 5 subclasses of TransportException. * Introduce an enum with exception codes. [1] org.eclipse.jgit.errors.TransportException (not org.eclipse.jgit.api.errors.TE) [2] 95d311f8886f42f31a4475f84aa23c6345ab7059
Created attachment 213435 [details] mylyn/context/zip
(In reply to comment #0) > * Provide subclasses of TransportException. Pushed to Gerrit as https://git.eclipse.org/r/#/c/5819/