Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgManifestCommand.java @ 366:189dc6dc1c3e
Use exceptions to expose errors reading mercurial data
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Fri, 16 Dec 2011 04:43:18 +0100 |
| parents | 6dbbc53fc46d |
| children | 2fadf8695f8a |
comparison
equal
deleted
inserted
replaced
| 365:3572fcb06473 | 366:189dc6dc1c3e |
|---|---|
| 99 * Runs the command. | 99 * Runs the command. |
| 100 * @param handler - callback to get the outcome | 100 * @param handler - callback to get the outcome |
| 101 * @throws IllegalArgumentException if handler is <code>null</code> | 101 * @throws IllegalArgumentException if handler is <code>null</code> |
| 102 * @throws ConcurrentModificationException if this command is already in use (running) | 102 * @throws ConcurrentModificationException if this command is already in use (running) |
| 103 */ | 103 */ |
| 104 public void execute(Handler handler) { | 104 public void execute(Handler handler) throws HgException { |
| 105 if (handler == null) { | 105 if (handler == null) { |
| 106 throw new IllegalArgumentException(); | 106 throw new IllegalArgumentException(); |
| 107 } | 107 } |
| 108 if (visitor != null) { | 108 if (visitor != null) { |
| 109 throw new ConcurrentModificationException(); | 109 throw new ConcurrentModificationException(); |
