Browse Source

Clarify documentation of exceptions in RepositoryResolver

Change-Id: Idf805f76f24bfa1f3552366197e0ed4e45cb2b74
stable-2.0
Dave Borowitz 13 years ago
parent
commit
d794a4fde3
  1. 9
      org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java

9
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 * the repository does not exist or the name is incorrectly
* formatted as a repository name. * formatted as a repository name.
* @throws ServiceNotAuthorizedException * @throws ServiceNotAuthorizedException
* the repository exists, but HTTP access is not allowed for the * the repository may exist, but HTTP access is not allowed
* current user. * without authentication, i.e. this corresponds to an HTTP 401
* Unauthorized.
* @throws ServiceNotEnabledException * @throws ServiceNotEnabledException
* the repository exists, but HTTP access is not allowed on the * the repository may exist, but HTTP access is not allowed on the
* target repository, by any user. * target repository, for the current user.
*/ */
Repository open(C req, String name) throws RepositoryNotFoundException, Repository open(C req, String name) throws RepositoryNotFoundException,
ServiceNotAuthorizedException, ServiceNotEnabledException; ServiceNotAuthorizedException, ServiceNotEnabledException;

Loading…
Cancel
Save