]> source.dussan.org Git - jgit.git/commitdiff
Clarify documentation of exceptions in RepositoryResolver 76/5476/1
authorDave Borowitz <dborowitz@google.com>
Mon, 26 Mar 2012 16:53:32 +0000 (09:53 -0700)
committerDave Borowitz <dborowitz@google.com>
Mon, 26 Mar 2012 16:53:32 +0000 (09:53 -0700)
Change-Id: Idf805f76f24bfa1f3552366197e0ed4e45cb2b74

org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java

index b2354193e199826cf19691f205882ffed27430ee..611d9a9216942c242acdb9b2e0581cff9ca82ea2 100644 (file)
@@ -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;