comparison src/org/tmatesoft/hg/repo/ext/Rebase.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 d2f6ab541330
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 *
26 import org.tmatesoft.hg.core.HgBadNodeidFormatException; 26 import org.tmatesoft.hg.core.HgBadNodeidFormatException;
27 import org.tmatesoft.hg.core.HgIOException; 27 import org.tmatesoft.hg.core.HgIOException;
28 import org.tmatesoft.hg.core.Nodeid; 28 import org.tmatesoft.hg.core.Nodeid;
29 import org.tmatesoft.hg.internal.Internals; 29 import org.tmatesoft.hg.internal.Internals;
30 import org.tmatesoft.hg.internal.LineReader; 30 import org.tmatesoft.hg.internal.LineReader;
31 import org.tmatesoft.hg.repo.HgInvalidFileException;
32 import org.tmatesoft.hg.repo.HgInvalidStateException; 31 import org.tmatesoft.hg.repo.HgInvalidStateException;
33 32
34 /** 33 /**
35 * Support for standard Rebase extension. 34 * Support for standard Rebase extension.
36 * 35 *
92 } 91 }
93 } catch (NoSuchElementException ex) { 92 } catch (NoSuchElementException ex) {
94 throw new HgIOException("Bad format of rebase state file", f); 93 throw new HgIOException("Bad format of rebase state file", f);
95 } catch (HgBadNodeidFormatException ex) { 94 } catch (HgBadNodeidFormatException ex) {
96 throw new HgIOException("Bad format of rebase state file", ex, f); 95 throw new HgIOException("Bad format of rebase state file", ex, f);
97 } catch (HgInvalidFileException ex) {
98 throw new HgIOException("Bad format of rebase state file", ex, f);
99 } 96 }
100 return this; 97 return this;
101 } 98 }
102 99
103 /** 100 /**