NotSupportedException.java

  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. package org.eclipse.jgit.errors;

  12. import java.io.IOException;

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

  18.     /**
  19.      * Construct a NotSupportedException for some issue JGit cannot
  20.      * yet handle.
  21.      *
  22.      * @param s message describing the issue
  23.      */
  24.     public NotSupportedException(String s) {
  25.         super(s);
  26.     }

  27.     /**
  28.      * Construct a NotSupportedException for some issue JGit cannot yet handle.
  29.      *
  30.      * @param s
  31.      *            message describing the issue
  32.      * @param why
  33.      *            a lower level implementation specific issue.
  34.      */
  35.     public NotSupportedException(String s, Throwable why) {
  36.         super(s);
  37.         initCause(why);
  38.     }
  39. }