aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Borowitz2012-03-26 12:53:32 (EDT)
committerDave Borowitz2012-03-26 12:53:32 (EDT)
commitd794a4fde3a712d275644c58b21323807845a7fb (patch)
tree2a0143b9e10b6c995747903744cd1c3e94fed847
parente0531ace35b9c8eca9ded0a7b1540de3c49dbde6 (diff)
downloadjgit-d794a4fde3a712d275644c58b21323807845a7fb.zip
jgit-d794a4fde3a712d275644c58b21323807845a7fb.tar.gz
jgit-d794a4fde3a712d275644c58b21323807845a7fb.tar.bz2
Clarify documentation of exceptions in RepositoryResolverrefs/changes/76/5476/1
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java
index b235419..611d9a9 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java
@@ -76,11 +76,12 @@ public interface RepositoryResolver<C> {
* the repository does not exist or the name is incorrectly
* formatted as a repository name.
* @throws ServiceNotAuthorizedException
- * the repository exists, but HTTP access is not allowed for the
- * current user.
+ * the repository may exist, but HTTP access is not allowed
+ * without authentication, i.e. this corresponds to an HTTP 401
+ * Unauthorized.
* @throws ServiceNotEnabledException
- * the repository exists, but HTTP access is not allowed on the
- * target repository, by any user.
+ * the repository may exist, but HTTP access is not allowed on the
+ * target repository, for the current user.
*/
Repository open(C req, String name) throws RepositoryNotFoundException,
ServiceNotAuthorizedException, ServiceNotEnabledException;