Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgException.java @ 148:1a7a9a20e1f9
Exceptions, javadoc. Initial cancel and progress support
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 23 Feb 2011 22:36:28 +0100 |
parents | |
children | 6d1804fe0ed7 |
comparison
equal
deleted
inserted
replaced
147:a05145db4d0c | 148:1a7a9a20e1f9 |
---|---|
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 * Root class for all hg4j exceptions. | |
21 * | |
22 * @author Artem Tikhomirov | |
23 * @author TMate Software Ltd. | |
24 */ | |
25 @SuppressWarnings("serial") | |
26 public class HgException extends Exception { | |
27 | |
28 public HgException(String reason) { | |
29 super(reason); | |
30 } | |
31 | |
32 public HgException(String reason, Throwable cause) { | |
33 super(reason, cause); | |
34 } | |
35 | |
36 public HgException(Throwable cause) { | |
37 super(cause); | |
38 } | |
39 | |
40 // /* XXX CONSIDER capability to pass extra information about errors */ | |
41 // public static class Status { | |
42 // public Status(String message, Throwable cause, int errorCode, Object extraData) { | |
43 // } | |
44 // } | |
45 } |