comparison src/org/tmatesoft/hg/core/HgIOException.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 7c0d2ce340b8
children ae2d439fbed3
comparison
equal deleted inserted replaced
627:5153eb73b18d 628:6526d8adbc0f
38 /** 38 /**
39 * @param message describes the issue, never <code>null</code> 39 * @param message describes the issue, never <code>null</code>
40 * @param cause root cause for the error, likely {@link IOException} or its subclass, but not necessarily, and may be omitted. 40 * @param cause root cause for the error, likely {@link IOException} or its subclass, but not necessarily, and may be omitted.
41 * @param troubleFile file we tried to deal with, never <code>null</code> 41 * @param troubleFile file we tried to deal with, never <code>null</code>
42 */ 42 */
43 public HgIOException(String message, Exception cause, File troubleFile) { 43 public HgIOException(String message, Throwable cause, File troubleFile) {
44 super(message, cause); 44 super(message, cause);
45 file = troubleFile; 45 file = troubleFile;
46 } 46 }
47 47
48 /** 48 /**