diff src/org/tmatesoft/hg/core/HgCallbackTargetException.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 9c9c442b5f2e
children b9e5ac26dd83
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgCallbackTargetException.java	Wed Mar 28 19:34:37 2012 +0200
+++ b/src/org/tmatesoft/hg/core/HgCallbackTargetException.java	Thu Mar 29 17:14:35 2012 +0200
@@ -29,9 +29,11 @@
  * library's own {@link HgException} are rather obscure. Suggested approach is to wrap whatever exception user code produces with
  * {@link HgCallbackTargetException}, the only checked exception allowed out from a callback.
  * 
- *  <p>It's intentionally not a subclass of {@link HgException} to avoid get mixed with library own errors and be processed separately.
+ * <p>It's intentionally not a subclass of {@link HgException} to avoid get mixed with library own errors and be processed separately.
  * 
- * FIXME REVISIT shall just throw HgCallbackTargetException from any handler, and do not catch anything in commands at all.
+ * <p>Top-level API handlers ({@link HgStatusHandler}, {@link HgManifestHandler}, {@link HgChangesetHandler}, etc) allow to throw 
+ * HgCallbackTargetException from their methods. Exceptions throws this way are not handled in corresponding commands, except for
+ * revision or file name specification, unless already set. The, these exceptions go straight to the command caller.
  * 
  * @author Artem Tikhomirov
  * @author TMate Software Ltd.