View Javadoc
1   /*
2    * Copyright (C) 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.errors;
12  
13  import org.eclipse.jgit.transport.URIish;
14  
15  /**
16   * Contains a message from the remote repository indicating a problem.
17   * <p>
18   * Some remote repositories may send customized error messages describing why
19   * they cannot be accessed. These messages are wrapped up in this exception and
20   * thrown to the caller of the transport operation.
21   */
22  public class RemoteRepositoryException extends TransportException {
23  	private static final long serialVersionUID = 1L;
24  
25  	/**
26  	 * Constructs a RemoteRepositoryException for a message.
27  	 *
28  	 * @param uri
29  	 *            URI used for transport
30  	 * @param message
31  	 *            message, exactly as supplied by the remote repository. May
32  	 *            contain LFs (newlines) if the remote formatted it that way.
33  	 */
34  	public RemoteRepositoryException(URIish uri, String message) {
35  		super(uri, message);
36  	}
37  }