View Javadoc
1   /*
2    * Copyright (C) 2009-2010, Google Inc. and others
3    *
4    * This program and the accompanying materials are made available under the
5    * terms of the Eclipse Distribution License v. 1.0 which is available at
6    * https://www.eclipse.org/org/documents/edl-v10.php.
7    *
8    * SPDX-License-Identifier: BSD-3-Clause
9    */
10  
11  package org.eclipse.jgit.transport.resolver;
12  
13  import org.eclipse.jgit.internal.JGitText;
14  
15  /**
16   * Indicates the request service is not enabled on a repository.
17   */
18  public class ServiceNotEnabledException extends Exception {
19  	private static final long serialVersionUID = 1L;
20  
21  	/**
22  	 * Constructor for ServiceNotEnabledException.
23  	 *
24  	 * @param message
25  	 *            error message
26  	 * @param cause
27  	 *            a {@link java.lang.Throwable} object.
28  	 * @since 4.1
29  	 */
30  	public ServiceNotEnabledException(String message, Throwable cause) {
31  		super(message, cause);
32  	}
33  
34  	/**
35  	 * Constructor for ServiceNotEnabledException.
36  	 *
37  	 * @param message
38  	 *            error message
39  	 * @since 4.1
40  	 */
41  	public ServiceNotEnabledException(String message) {
42  		super(message);
43  	}
44  
45  	/**
46  	 * Indicates the request service is not available.
47  	 */
48  	public ServiceNotEnabledException() {
49  		super(JGitText.get().serviceNotEnabledNoName);
50  	}
51  }