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.

UnpackErrorHandler.java 772B

1234567891011121314151617181920212223242526272829
  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. import java.io.IOException;
  12. /**
  13. * Exception handler for processing an incoming pack file.
  14. *
  15. * @since 5.7
  16. */
  17. public interface UnpackErrorHandler {
  18. /**
  19. * Handle an exception thrown while unpacking the pack file.
  20. *
  21. * @param t
  22. * exception thrown
  23. * @throws IOException
  24. * thrown when failed to write an error back to the client.
  25. */
  26. void handleUnpackException(Throwable t) throws IOException;
  27. }