You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnpackException.java 823B

123456789101112131415161718192021222324252627282930313233
  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. package org.eclipse.jgit.errors;
  11. import java.io.IOException;
  12. import org.eclipse.jgit.internal.JGitText;
  13. /**
  14. * Indicates a ReceivePack failure while scanning the pack stream.
  15. */
  16. public class UnpackException extends IOException {
  17. private static final long serialVersionUID = 1L;
  18. /**
  19. * Creates an exception with a root cause.
  20. *
  21. * @param why
  22. * the root cause of the unpacking failure.
  23. */
  24. public UnpackException(Throwable why) {
  25. super(JGitText.get().unpackException);
  26. initCause(why);
  27. }
  28. }