diff src/org/tmatesoft/hg/internal/ManifestRevision.java @ 423:9c9c442b5f2e

Major refactoring of exception handling. Low-level API uses RuntimeExceptions, while checked are left for higher level
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 23 Mar 2012 22:51:18 +0100
parents ee8264d80747
children 6437d261048a
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/ManifestRevision.java	Fri Mar 23 21:26:01 2012 +0100
+++ b/src/org/tmatesoft/hg/internal/ManifestRevision.java	Fri Mar 23 22:51:18 2012 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 TMate Software Ltd
+ * Copyright (c) 2011-2012 TMate Software Ltd
  *  
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,6 @@
 import java.util.Collection;
 import java.util.TreeMap;
 
-import org.tmatesoft.hg.core.HgBadStateException;
 import org.tmatesoft.hg.core.Nodeid;
 import org.tmatesoft.hg.repo.HgManifest;
 import org.tmatesoft.hg.util.Path;
@@ -75,7 +74,7 @@
 	//
 
 	public boolean next(Nodeid nid, String fname, String flags) {
-		throw new HgBadStateException(HgManifest.Inspector2.class.getName());
+		throw new IllegalStateException(HgManifest.Inspector2.class.getName());
 	}
 
 	public boolean next(Nodeid nid, Path fname, HgManifest.Flags flags) {