View Javadoc
1   /*
2    * Copyright (c) 2019, Google LLC  and others
3    *
4    * This program and the accompanying materials are made available under the
5    * terms of the Eclipse Distribution License v. 1.0 which is available at
6    * http://www.eclipse.org/org/documents/edl-v10.php.
7    *
8    * SPDX-License-Identifier: BSD-3-Clause
9    */
10  package org.eclipse.jgit.transport;
11  
12  import java.io.IOException;
13  
14  /**
15   * Exception handler for processing an incoming pack file.
16   *
17   * @since 5.7
18   */
19  public interface UnpackErrorHandler {
20  	/**
21  	 * Handle an exception thrown while unpacking the pack file.
22  	 *
23  	 * @param t
24  	 *            exception thrown
25  	 * @throws IOException
26  	 *             thrown when failed to write an error back to the client.
27  	 */
28  	void handleUnpackException(Throwable t) throws IOException;
29  }