aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/UnpackErrorHandler.java
blob: 12c9a7621468162d14158c8a4077e122426334bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}