Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgBadStateException.java @ 157:d5268ca7715b
Merged branch wrap-data-access into default for resource-friendly data access. Updated API to promote that friendliness to clients (channels, not byte[]). More exceptions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 09 Mar 2011 05:22:17 +0100 |
parents | 1a7a9a20e1f9 |
children | 2747b0723867 |
comparison
equal
deleted
inserted
replaced
156:643ddec3be36 | 157:d5268ca7715b |
---|---|
23 * @author TMate Software Ltd. | 23 * @author TMate Software Ltd. |
24 */ | 24 */ |
25 @SuppressWarnings("serial") | 25 @SuppressWarnings("serial") |
26 public class HgBadStateException extends RuntimeException { | 26 public class HgBadStateException extends RuntimeException { |
27 | 27 |
28 // FIXME quick-n-dirty fix, don't allow exceptions without a cause | |
29 public HgBadStateException() { | |
30 super("Internal error"); | |
31 } | |
32 | |
33 public HgBadStateException(String message) { | |
34 super(message); | |
35 } | |
36 | |
37 public HgBadStateException(Throwable cause) { | |
38 super(cause); | |
39 } | |
28 } | 40 } |