]> source.dussan.org Git - jgit.git/commit
transport: Move exception handler to the caller 56/152356/2
authorMasaya Suzuki <masayasuzuki@google.com>
Fri, 8 Nov 2019 01:40:25 +0000 (17:40 -0800)
committerMasaya Suzuki <masayasuzuki@google.com>
Mon, 2 Dec 2019 20:33:11 +0000 (12:33 -0800)
commit19293add844cdc972153e1f81e0aac32833660ed
tree653b7bc7a462c956e942b1815556894fcbc88176
parent6bc366576438be839fb6bd95b5fb5dfcb9306846
transport: Move exception handler to the caller

Move exception handling code to the caller side. This is a preparation
for adding a custom error handler that is similar to UploadPack.

Note that `catch (Throwable t)` will not affect the exception spec since
Java will do an analysis of rethrown exceptions. See
https://docs.oracle.com/javase/8/docs/technotes/guides/language/catch-multiple.html.

Change-Id: I973a63d4b079c2cd1402afb3f2956e18b7d5a00c
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java