Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgBadStateException.java @ 403:2747b0723867
FIXMEs: work on exceptions and javadoc
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 05 Mar 2012 14:50:51 +0100 |
parents | d5268ca7715b |
children |
comparison
equal
deleted
inserted
replaced
402:1fcc7f7b6d65 | 403:2747b0723867 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011 TMate Software Ltd | 2 * Copyright (c) 2011-2012 TMate Software Ltd |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or modify | 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 | 5 * it under the terms of the GNU General Public License as published by |
6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
7 * | 7 * |
16 */ | 16 */ |
17 package org.tmatesoft.hg.core; | 17 package org.tmatesoft.hg.core; |
18 | 18 |
19 /** | 19 /** |
20 * hg4j's own internal error or unexpected state. | 20 * hg4j's own internal error or unexpected state. |
21 * XXX unless there's anything additional, there's not too much value in this class | |
21 * | 22 * |
22 * @author Artem Tikhomirov | 23 * @author Artem Tikhomirov |
23 * @author TMate Software Ltd. | 24 * @author TMate Software Ltd. |
24 */ | 25 */ |
25 @SuppressWarnings("serial") | 26 @SuppressWarnings("serial") |
26 public class HgBadStateException extends RuntimeException { | 27 public class HgBadStateException extends RuntimeException { |
27 | |
28 // FIXME quick-n-dirty fix, don't allow exceptions without a cause | |
29 public HgBadStateException() { | |
30 super("Internal error"); | |
31 } | |
32 | 28 |
33 public HgBadStateException(String message) { | 29 public HgBadStateException(String message) { |
34 super(message); | 30 super(message); |
35 } | 31 } |
36 | 32 |