aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/errors/RemoteRepositoryException.java
blob: 1567b1b06d3010c6a60c7074cd994a834975b4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright (C) 2010, Google Inc. and others
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0 which is available at
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package org.eclipse.jgit.errors;

import org.eclipse.jgit.transport.URIish;

/**
 * Contains a message from the remote repository indicating a problem.
 * <p>
 * Some remote repositories may send customized error messages describing why
 * they cannot be accessed. These messages are wrapped up in this exception and
 * thrown to the caller of the transport operation.
 */
public class RemoteRepositoryException extends TransportException {
	private static final long serialVersionUID = 1L;

	/**
	 * Constructs a RemoteRepositoryException for a message.
	 *
	 * @param uri
	 *            URI used for transport
	 * @param message
	 *            message, exactly as supplied by the remote repository. May
	 *            contain LFs (newlines) if the remote formatted it that way.
	 */
	public RemoteRepositoryException(URIish uri, String message) {
		super(uri, message);
	}
}