Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgFileRenameHandlerMixin.java @ 628:6526d8adbc0f
Explicit HgRuntimeException to facilitate easy switch from runtime to checked exceptions
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Wed, 22 May 2013 15:52:31 +0200 |
| parents | 5dcb4581c8ef |
| children |
comparison
equal
deleted
inserted
replaced
| 627:5153eb73b18d | 628:6526d8adbc0f |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 TMate Software Ltd | 2 * Copyright (c) 2012-2013 TMate Software Ltd |
| 3 * | 3 * |
| 4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
| 5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
| 6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
| 7 * | 7 * |
| 14 * the terms of a license other than GNU General Public License | 14 * the terms of a license other than GNU General Public License |
| 15 * contact TMate Software at support@hg4j.com | 15 * contact TMate Software at support@hg4j.com |
| 16 */ | 16 */ |
| 17 package org.tmatesoft.hg.core; | 17 package org.tmatesoft.hg.core; |
| 18 | 18 |
| 19 import org.tmatesoft.hg.repo.HgRuntimeException; | |
| 19 import org.tmatesoft.hg.util.Adaptable; | 20 import org.tmatesoft.hg.util.Adaptable; |
| 20 | 21 |
| 21 /** | 22 /** |
| 22 * Addition to file history handlers (like {@link HgChangesetHandler} and {@link HgChangesetTreeHandler}) | 23 * Addition to file history handlers (like {@link HgChangesetHandler} and {@link HgChangesetTreeHandler}) |
| 23 * to receive notification about rename in the history of the file being walked. | 24 * to receive notification about rename in the history of the file being walked. |
| 32 public interface HgFileRenameHandlerMixin { | 33 public interface HgFileRenameHandlerMixin { |
| 33 // XXX perhaps, should distinguish copy from rename? And what about merged revisions and following them? | 34 // XXX perhaps, should distinguish copy from rename? And what about merged revisions and following them? |
| 34 | 35 |
| 35 /** | 36 /** |
| 36 * @throws HgCallbackTargetException wrapper object for any exception user code may produce | 37 * @throws HgCallbackTargetException wrapper object for any exception user code may produce |
| 38 * @throws HgRuntimeException propagates library issues. <em>Runtime exception</em> | |
| 37 */ | 39 */ |
| 38 void copy(HgFileRevision from, HgFileRevision to) throws HgCallbackTargetException; | 40 void copy(HgFileRevision from, HgFileRevision to) throws HgCallbackTargetException, HgRuntimeException; |
| 39 } | 41 } |
