WriteAbortedException.java

  1. /*
  2.  * Copyright (C) 2015, 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.transport;

  11. import java.io.IOException;

  12. /**
  13.  * An exception to be thrown when the write operation is aborted.
  14.  * <p>
  15.  * That can be thrown inside
  16.  * {@link org.eclipse.jgit.transport.ObjectCountCallback#setObjectCount(long)}.
  17.  *
  18.  * @since 4.1
  19.  */
  20. public class WriteAbortedException extends IOException {
  21.     private static final long serialVersionUID = 1L;

  22.     /**
  23.      * Construct a {@code WriteAbortedException}.
  24.      */
  25.     public WriteAbortedException() {
  26.     }

  27.     /**
  28.      * Construct a {@code WriteAbortedException}.
  29.      *
  30.      * @param s message describing the issue
  31.      */
  32.     public WriteAbortedException(String s) {
  33.         super(s);
  34.     }

  35.     /**
  36.      * Construct a {@code WriteAbortedException}.
  37.      *
  38.      * @param s
  39.      *            message describing the issue
  40.      * @param why
  41.      *            a lower level implementation specific issue.
  42.      */
  43.     public WriteAbortedException(String s, Throwable why) {
  44.         super(s, why);
  45.     }
  46. }