1 /*******************************************************************************
2 * Copyright (C) 2010, Mathias Kinzler <mathias.kinzler@sap.com>
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
10 *******************************************************************************/
11 package org
.eclipse
.egit
.core
.op
;
13 import org
.eclipse
.jgit
.transport
.FetchResult
;
14 import org
.eclipse
.jgit
.transport
.URIish
;
17 * Stores the result of a fetch operation
19 public class FetchOperationResult
{
20 private final URIish uri
;
22 private final FetchResult fetchResult
;
24 private final String fetchErrorMessage
;
30 public FetchOperationResult(URIish uri
, FetchResult result
) {
32 this.fetchResult
= result
;
33 this.fetchErrorMessage
= null;
40 public FetchOperationResult(URIish uri
, String errorMessage
) {
42 this.fetchResult
= null;
43 this.fetchErrorMessage
= errorMessage
;
50 public URIish
getURI() {
57 public FetchResult
getFetchResult() {
62 * @return the error message
64 public String
getErrorMessage() {
65 return fetchErrorMessage
;