Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgRepositoryNotFoundException.java @ 423:9c9c442b5f2e
Major refactoring of exception handling. Low-level API uses RuntimeExceptions, while checked are left for higher level
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Fri, 23 Mar 2012 22:51:18 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 422:5d1cc7366d04 | 423:9c9c442b5f2e |
|---|---|
| 1 /* | |
| 2 * Copyright (c) 2012 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 * Indicates failure to find repository at specified location | |
| 21 * XXX may provide information about alternatives tried | |
| 22 * | |
| 23 * @author Artem Tikhomirov | |
| 24 * @author TMate Software Ltd. | |
| 25 */ | |
| 26 @SuppressWarnings("serial") | |
| 27 public class HgRepositoryNotFoundException extends HgException { | |
| 28 | |
| 29 private String location; | |
| 30 | |
| 31 public HgRepositoryNotFoundException(String message) { | |
| 32 super(message); | |
| 33 } | |
| 34 | |
| 35 public HgRepositoryNotFoundException setLocation(String location) { | |
| 36 this.location = location; | |
| 37 return this; | |
| 38 } | |
| 39 | |
| 40 public String getLocation() { | |
| 41 return this.location; | |
| 42 } | |
| 43 } |
