/*
 * Copyright (C) 2010, Google Inc. 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
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package org.eclipse.jgit.errors;

import java.io.IOException;

import org.eclipse.jgit.internal.JGitText;

Indicates a ReceivePack failure while scanning the pack stream.
/** * Indicates a ReceivePack failure while scanning the pack stream. */
public class UnpackException extends IOException { private static final long serialVersionUID = 1L;
Creates an exception with a root cause.
Params:
  • why – the root cause of the unpacking failure.
/** * Creates an exception with a root cause. * * @param why * the root cause of the unpacking failure. */
public UnpackException(Throwable why) { super(JGitText.get().unpackException); initCause(why); } }