View Javadoc
1   /*
2    * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
3    * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> and others
4    *
5    * This program and the accompanying materials are made available under the
6    * terms of the Eclipse Distribution License v. 1.0 which is available at
7    * https://www.eclipse.org/org/documents/edl-v10.php.
8    *
9    * SPDX-License-Identifier: BSD-3-Clause
10   */
11  
12  package org.eclipse.jgit.errors;
13  
14  import java.io.IOException;
15  
16  /**
17   * JGit encountered a case that it knows it cannot yet handle.
18   */
19  public class NotSupportedException extends IOException {
20  	private static final long serialVersionUID = 1L;
21  
22  	/**
23  	 * Construct a NotSupportedException for some issue JGit cannot
24  	 * yet handle.
25  	 *
26  	 * @param s message describing the issue
27  	 */
28  	public NotSupportedException(String s) {
29  		super(s);
30  	}
31  
32  	/**
33  	 * Construct a NotSupportedException for some issue JGit cannot yet handle.
34  	 *
35  	 * @param s
36  	 *            message describing the issue
37  	 * @param why
38  	 *            a lower level implementation specific issue.
39  	 */
40  	public NotSupportedException(String s, Throwable why) {
41  		super(s);
42  		initCause(why);
43  	}
44  }