]> source.dussan.org Git - jgit.git/commit
transport: Add ReceiveCommandErrorHandler 57/152357/2
authorMasaya Suzuki <masayasuzuki@google.com>
Fri, 8 Nov 2019 02:22:17 +0000 (18:22 -0800)
committerMasaya Suzuki <masayasuzuki@google.com>
Mon, 2 Dec 2019 20:49:15 +0000 (12:49 -0800)
commita91489f4a8c12214fcfda14f28326552b5293da5
tree9de87da3bcf6f7986711fe1c7f0c444b126473a4
parent19293add844cdc972153e1f81e0aac32833660ed
transport: Add ReceiveCommandErrorHandler

This gives a chance to handle an exception for a user. For example, when
an IOException is thrown while executing
`walk.parseAny(cmd.getNewId())`, it's always handled as
REJECTED_MISSING_OBJECT. However, IOException can mean a Git storage IO
error. By introducing an error handler class, a user can add a custom
error handler for these cases.

Change-Id: I3e03a536e1d8e137cb0f6e596d71642e72adde9e
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommandErrorHandler.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java