1 /*
2 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> 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.errors;
12
13 import org.eclipse.jgit.transport.URIish;
14
15 /**
16 * Indicates a remote repository does not exist.
17 */
18 public class NoRemoteRepositoryException extends TransportException {
19 private static final long serialVersionUID = 1L;
20
21 /**
22 * Constructs an exception indicating a repository does not exist.
23 *
24 * @param uri
25 * URI used for transport
26 * @param s
27 * message
28 */
29 public NoRemoteRepositoryException(URIish uri, String s) {
30 super(uri, s);
31 }
32
33 /**
34 * Constructs an exception indicating a repository does not exist.
35 *
36 * @param uri
37 * URI used for transport
38 * @param s
39 * message
40 * @param cause
41 * root cause exception
42 * @since 5.13
43 */
44 public NoRemoteRepositoryException(URIish uri, String s, Throwable cause) {
45 super(uri, s, cause);
46 }
47 }