Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgRemoteConnectionException.java @ 215:41a778e3fd31
Issue 5: Facilities for progress and cancellation. More specific exceptions. Exceptions from callbacks as RuntimeException
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 17 May 2011 00:56:54 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
214:4252faa556cd | 215:41a778e3fd31 |
---|---|
1 /* | |
2 * Copyright (c) 2011 TMate Software Ltd | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; version 2 of the License. | |
7 * | |
8 * This program is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * For information on how to redistribute this software under | |
14 * the terms of a license other than GNU General Public License | |
15 * contact TMate Software at support@hg4j.com | |
16 */ | |
17 package org.tmatesoft.hg.core; | |
18 | |
19 /** | |
20 * | |
21 * @author Artem Tikhomirov | |
22 * @author TMate Software Ltd. | |
23 */ | |
24 @SuppressWarnings("serial") | |
25 public class HgRemoteConnectionException extends HgException { | |
26 | |
27 private String serverInfo; | |
28 private String cmdName; | |
29 | |
30 public HgRemoteConnectionException(String reason) { | |
31 super(reason); | |
32 } | |
33 | |
34 public HgRemoteConnectionException(String reason, Throwable cause) { | |
35 super(reason, cause); | |
36 } | |
37 | |
38 public HgRemoteConnectionException setServerInfo(String si) { | |
39 serverInfo = si; | |
40 return this; | |
41 } | |
42 public String getServerInfo() { | |
43 return serverInfo; | |
44 } | |
45 | |
46 public HgRemoteConnectionException setRemoteCommand(String commandName) { | |
47 cmdName = commandName; | |
48 return this; | |
49 } | |
50 | |
51 public String getRemoteCommand() { | |
52 return cmdName; | |
53 } | |
54 } |