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
11 package org.eclipse.jgit.errors;
12
13 /**
14 * Thrown when a thread executing a diff is interrupted
15 *
16 * @see org.eclipse.jgit.diff.MyersDiff
17 * @since 4.0
18 */
19 public class DiffInterruptedException extends RuntimeException {
20 private static final long serialVersionUID = 1L;
21
22 /**
23 * Constructor for DiffInterruptedException
24 *
25 * @param message
26 * error message
27 * @param cause
28 * a {@link java.lang.Throwable}
29 * @since 4.1
30 */
31 public DiffInterruptedException(String message, Throwable cause) {
32 super(message, cause);
33 }
34
35 /**
36 * Constructor for DiffInterruptedException
37 *
38 * @param message
39 * error message
40 * @since 4.1
41 */
42 public DiffInterruptedException(String message) {
43 super(message);
44 }
45
46 /**
47 * Indicates that the thread computing a diff was interrupted.
48 */
49 public DiffInterruptedException() {
50 super();
51 }
52 }