diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgException.java	Wed Mar 28 19:34:37 2012 +0200
+++ b/src/org/tmatesoft/hg/core/HgException.java	Thu Mar 29 17:14:35 2012 +0200
@@ -27,19 +27,19 @@
  * @author TMate Software Ltd.
  */
 @SuppressWarnings("serial")
-public class HgException extends Exception {
+public abstract class HgException extends Exception {
 	
 	protected final ExceptionInfo<HgException> extras = new ExceptionInfo<HgException>(this);
 
-	public HgException(String reason) {
+	protected HgException(String reason) {
 		super(reason);
 	}
 
-	public HgException(String reason, Throwable cause) {
+	protected HgException(String reason, Throwable cause) {
 		super(reason, cause);
 	}
 
-	public HgException(Throwable cause) {
+	protected HgException(Throwable cause) {
 		super(cause);
 	}