Browse Source
Currently, there's no way for a user to customize the error handler for the exception happened during unpacking an incoming pack file. Create an error handler class and let them specify one. Change-Id: Id07638ee58c88e1365181c3ddd17ee0266f3934d Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>stable-5.7
Masaya Suzuki
5 years ago
2 changed files with 48 additions and 1 deletions
@ -0,0 +1,29 @@
|
||||
/* |
||||
* Copyright (c) 2019, Google LLC and others |
||||
* |
||||
* This program and the accompanying materials are made available under the |
||||
* terms of the Eclipse Distribution License v. 1.0 which is available at |
||||
* http://www.eclipse.org/org/documents/edl-v10.php.
|
||||
* |
||||
* SPDX-License-Identifier: BSD-3-Clause |
||||
*/ |
||||
package org.eclipse.jgit.transport; |
||||
|
||||
import java.io.IOException; |
||||
|
||||
/** |
||||
* Exception handler for processing an incoming pack file. |
||||
* |
||||
* @since 5.7 |
||||
*/ |
||||
public interface UnpackErrorHandler { |
||||
/** |
||||
* Handle an exception thrown while unpacking the pack file. |
||||
* |
||||
* @param t |
||||
* exception thrown |
||||
* @throws IOException |
||||
* thrown when failed to write an error back to the client. |
||||
*/ |
||||
void handleUnpackException(Throwable t) throws IOException; |
||||
} |
Loading…
Reference in new issue