DiffInterruptedException.java

  1. /*
  2.  * Copyright (C) 2015 Ericsson 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. /**
  12.  * Thrown when a thread executing a diff is interrupted
  13.  *
  14.  * @see org.eclipse.jgit.diff.MyersDiff
  15.  * @since 4.0
  16.  */
  17. public class DiffInterruptedException extends RuntimeException {
  18.     private static final long serialVersionUID = 1L;

  19.     /**
  20.      * Constructor for DiffInterruptedException
  21.      *
  22.      * @param message
  23.      *            error message
  24.      * @param cause
  25.      *            a {@link java.lang.Throwable}
  26.      * @since 4.1
  27.      */
  28.     public DiffInterruptedException(String message, Throwable cause) {
  29.         super(message, cause);
  30.     }

  31.     /**
  32.      * Constructor for DiffInterruptedException
  33.      *
  34.      * @param message
  35.      *            error message
  36.      * @since 4.1
  37.      */
  38.     public DiffInterruptedException(String message) {
  39.         super(message);
  40.     }

  41.     /**
  42.      * Indicates that the thread computing a diff was interrupted.
  43.      */
  44.     public DiffInterruptedException() {
  45.         super();
  46.     }
  47. }