ServiceUnavailableException.java

  1. /*
  2.  * Copyright (C) 2020, Matthias Sohn <matthias.sohn@sap.com> and
  3.  * other copyright owners as documented in the project's IP log.
  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.api.errors;

  12. /**
  13.  * Exception thrown when an optional service is not available
  14.  *
  15.  * @since 5.8
  16.  */
  17. public class ServiceUnavailableException extends GitAPIException {
  18.     private static final long serialVersionUID = 1L;

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

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