]> source.dussan.org Git - jgit.git/commit
Allow RepositoryResolver to throw ServiceMayNotContinueException 77/5477/1
authorDave Borowitz <dborowitz@google.com>
Mon, 26 Mar 2012 17:19:40 +0000 (10:19 -0700)
committerDave Borowitz <dborowitz@google.com>
Mon, 26 Mar 2012 17:19:40 +0000 (10:19 -0700)
commit55bf06b43d8e8ed2f15357e4ecf26eefbff31e29
treebda3b6c955c3fc3bc68c2dadce098a1a2f20a53b
parentd794a4fde3a712d275644c58b21323807845a7fb
Allow RepositoryResolver to throw ServiceMayNotContinueException

Implementations may want to send an error message to the user, which
doesn't really fit with any of the existing exception types.
ServiceMayNotContinueException, on the other hand, is documented as
always containing a user-visible error string, so use that.

Modify the git and HTTP transport mechanisms to properly relay this
message to the end user.

Change-Id: I362e67ea46102a145bf2c6284d38788537c9735f
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/RepositoryFilter.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/DaemonService.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/RepositoryResolver.java