1 /*
2 * Copyright (C) 2010, Google Inc. 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 * https://www.eclipse.org/org/documents/edl-v10.php.
7 *
8 * SPDX-License-Identifier: BSD-3-Clause
9 */
10
11 package org.eclipse.jgit.errors;
12
13 import java.io.IOException;
14
15 import org.eclipse.jgit.internal.JGitText;
16
17 /**
18 * Indicates a ReceivePack failure while scanning the pack stream.
19 */
20 public class UnpackException extends IOException {
21 private static final long serialVersionUID = 1L;
22
23 /**
24 * Creates an exception with a root cause.
25 *
26 * @param why
27 * the root cause of the unpacking failure.
28 */
29 public UnpackException(Throwable why) {
30 super(JGitText.get().unpackException);
31 initCause(why);
32 }
33 }