comparison src/org/tmatesoft/hg/core/HgException.java @ 427:31a89587eb04

FIXMEs: consistent names, throws for commands and their handlers. Use of checked exceptions in hi-level api
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 29 Mar 2012 17:14:35 +0200
parents 48f993aa2f41
children
comparison
equal deleted inserted replaced
426:063b0663495a 427:31a89587eb04
25 * 25 *
26 * @author Artem Tikhomirov 26 * @author Artem Tikhomirov
27 * @author TMate Software Ltd. 27 * @author TMate Software Ltd.
28 */ 28 */
29 @SuppressWarnings("serial") 29 @SuppressWarnings("serial")
30 public class HgException extends Exception { 30 public abstract class HgException extends Exception {
31 31
32 protected final ExceptionInfo<HgException> extras = new ExceptionInfo<HgException>(this); 32 protected final ExceptionInfo<HgException> extras = new ExceptionInfo<HgException>(this);
33 33
34 public HgException(String reason) { 34 protected HgException(String reason) {
35 super(reason); 35 super(reason);
36 } 36 }
37 37
38 public HgException(String reason, Throwable cause) { 38 protected HgException(String reason, Throwable cause) {
39 super(reason, cause); 39 super(reason, cause);
40 } 40 }
41 41
42 public HgException(Throwable cause) { 42 protected HgException(Throwable cause) {
43 super(cause); 43 super(cause);
44 } 44 }
45 45
46 /** 46 /**
47 * @return not {@link HgRepository#BAD_REVISION} only when revision index was supplied at the construction time 47 * @return not {@link HgRepository#BAD_REVISION} only when revision index was supplied at the construction time