Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgStatusHandler.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 | 36fd1fd06492 |
comparison
equal
deleted
inserted
replaced
| 426:063b0663495a | 427:31a89587eb04 |
|---|---|
| 26 * @author TMate Software Ltd. | 26 * @author TMate Software Ltd. |
| 27 */ | 27 */ |
| 28 @Callback | 28 @Callback |
| 29 public interface HgStatusHandler { | 29 public interface HgStatusHandler { |
| 30 | 30 |
| 31 /** #next() as in HgChangesetHandler? | 31 /** |
| 32 * FIXME perhaps, handle() is better name? If yes, rename method in HgChangesetHandler, too, to make them similar. | 32 * Report status of the next file |
| 33 * void next(HgStatus s); | 33 * |
| 34 * @param s file status descriptor | |
| 34 * @throws HgCallbackTargetException wrapper for any exception user code may produce | 35 * @throws HgCallbackTargetException wrapper for any exception user code may produce |
| 35 */ | 36 */ |
| 36 void handleStatus(HgStatus s) throws HgCallbackTargetException; | 37 void status(HgStatus s) throws HgCallbackTargetException; |
| 37 | 38 |
| 38 /** | 39 /** |
| 39 * Report non-critical error processing single file during status operation | 40 * Report non-critical error processing single file during status operation |
| 41 * | |
| 40 * @param file name of the file that caused the trouble | 42 * @param file name of the file that caused the trouble |
| 41 * @param s error description object | 43 * @param s error description object |
| 42 * @throws HgCallbackTargetException wrapper for any exception user code may produce | 44 * @throws HgCallbackTargetException wrapper for any exception user code may produce |
| 43 */ | 45 */ |
| 44 void handleError(Path file, Status s) throws HgCallbackTargetException; | 46 void error(Path file, Status s) throws HgCallbackTargetException; |
| 45 } | 47 } |
