comparison src/org/tmatesoft/hg/repo/HgRuntimeException.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 48f993aa2f41
children cdd53e5884ae
comparison
equal deleted inserted replaced
426:063b0663495a 427:31a89587eb04
15 * contact TMate Software at support@hg4j.com 15 * contact TMate Software at support@hg4j.com
16 */ 16 */
17 package org.tmatesoft.hg.repo; 17 package org.tmatesoft.hg.repo;
18 18
19 import org.tmatesoft.hg.core.HgException; 19 import org.tmatesoft.hg.core.HgException;
20 import org.tmatesoft.hg.core.HgLibraryFailureException;
20 import org.tmatesoft.hg.core.Nodeid; 21 import org.tmatesoft.hg.core.Nodeid;
21 import org.tmatesoft.hg.internal.ExceptionInfo; 22 import org.tmatesoft.hg.internal.ExceptionInfo;
22 import org.tmatesoft.hg.util.Path; 23 import org.tmatesoft.hg.util.Path;
23 24
24 /** 25 /**
27 * Since most cases can't be handled in a reasonable manner (other than catch all exceptions and tell client 28 * Since most cases can't be handled in a reasonable manner (other than catch all exceptions and tell client
28 * something went wrong), and propagating all possible exceptions up through API is dubious task, low-level 29 * something went wrong), and propagating all possible exceptions up through API is dubious task, low-level
29 * exceptions are made runtime, rooting at this single class. 30 * exceptions are made runtime, rooting at this single class.
30 * 31 *
31 * <p>Hi-level api, {@link org.tmatesoft.hg.core}, where interaction with user-supplied values is more explicit, 32 * <p>Hi-level api, {@link org.tmatesoft.hg.core}, where interaction with user-supplied values is more explicit,
32 * may follow different exception strategy. 33 * follows different exception strategy, namely checked exceptions rooted at {@link HgException}.
33 * 34 *
34 * @see HgException 35 * @see HgException
36 * @see HgLibraryFailureException
35 * @author Artem Tikhomirov 37 * @author Artem Tikhomirov
36 * @author TMate Software Ltd. 38 * @author TMate Software Ltd.
37 */ 39 */
38 @SuppressWarnings("serial") 40 @SuppressWarnings("serial")
39 public abstract class HgRuntimeException extends RuntimeException { 41 public abstract class HgRuntimeException extends RuntimeException {