ServiceNotEnabledException.java

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

  11. import org.eclipse.jgit.internal.JGitText;

  12. /**
  13.  * Indicates the request service is not enabled on a repository.
  14.  */
  15. public class ServiceNotEnabledException extends Exception {
  16.     private static final long serialVersionUID = 1L;

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

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

  39.     /**
  40.      * Indicates the request service is not available.
  41.      */
  42.     public ServiceNotEnabledException() {
  43.         super(JGitText.get().serviceNotEnabledNoName);
  44.     }
  45. }