aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/errors/NotSupportedException.java
blob: 06f756fce4ef6ee7a87c057dae2e4807972b152c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> and others
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0 which is available at
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package org.eclipse.jgit.errors;

import java.io.IOException;

/**
 * JGit encountered a case that it knows it cannot yet handle.
 */
public class NotSupportedException extends IOException {
	private static final long serialVersionUID = 1L;

	/**
	 * Construct a NotSupportedException for some issue JGit cannot
	 * yet handle.
	 *
	 * @param s message describing the issue
	 */
	public NotSupportedException(String s) {
		super(s);
	}

	/**
	 * Construct a NotSupportedException for some issue JGit cannot yet handle.
	 *
	 * @param s
	 *            message describing the issue
	 * @param why
	 *            a lower level implementation specific issue.
	 */
	public NotSupportedException(String s, Throwable why) {
		super(s);
		initCause(why);
	}
}