From d794a4fde3a712d275644c58b21323807845a7fb Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Mon, 26 Mar 2012 09:53:32 -0700 Subject: [PATCH] Clarify documentation of exceptions in RepositoryResolver Change-Id: Idf805f76f24bfa1f3552366197e0ed4e45cb2b74 --- .../jgit/transport/resolver/RepositoryResolver.java | 9 +++++---- 1 file 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 b2354193e..611d9a921 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 { * 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;