diff src/org/tmatesoft/hg/repo/HgInvalidFileException.java @ 531:95c2f43008bd

Throw specific exception when checksum calculation fails
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 23 Jan 2013 18:03:13 +0100
parents 9c9c442b5f2e
children 6526d8adbc0f
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInvalidFileException.java	Wed Jan 23 17:46:12 2013 +0100
+++ b/src/org/tmatesoft/hg/repo/HgInvalidFileException.java	Wed Jan 23 18:03:13 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2012 TMate Software Ltd
+ * Copyright (c) 2011-2013 TMate Software Ltd
  *  
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -43,6 +43,12 @@
 		super(message, th);
 	}
 
+	/**
+	 * 
+	 * @param message description of the trouble, may (although should not) be <code>null</code>
+	 * @param th cause, optional
+	 * @param file where the trouble is, may be <code>null</code>, can be altered later with {@link #setFile(File)}
+	 */
 	public HgInvalidFileException(String message, Throwable th, File file) {
 		super(message, th);
 		details.setFile(file); // allows null