View Javadoc
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  /**
14   * Exception thrown when an optional service is not available
15   *
16   * @since 5.8
17   */
18  public class ServiceUnavailableException extends GitAPIException {
19  	private static final long serialVersionUID = 1L;
20  
21  	/**
22  	 * Constructor for ServiceUnavailableException
23  	 *
24  	 * @param message
25  	 *            error message
26  	 * @param cause
27  	 *            a {@link java.lang.Throwable}
28  	 */
29  	public ServiceUnavailableException(String message, Throwable cause) {
30  		super(message, cause);
31  	}
32  
33  	/**
34  	 * Constructor for ServiceUnavailableException
35  	 *
36  	 * @param message
37  	 *            error message
38  	 */
39  	public ServiceUnavailableException(String message) {
40  		super(message);
41  	}
42  }