comparison src/org/tmatesoft/hg/core/HgCallbackTargetException.java @ 216:c251bbc979cf

Use correct super cons to allow explicit initCause
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 17 May 2011 01:15:12 +0200
parents 41a778e3fd31
children 6d1804fe0ed7
comparison
equal deleted inserted replaced
215:41a778e3fd31 216:c251bbc979cf
35 35
36 /** 36 /**
37 * @param cause can't be <code>null</code> 37 * @param cause can't be <code>null</code>
38 */ 38 */
39 public HgCallbackTargetException(Throwable cause) { 39 public HgCallbackTargetException(Throwable cause) {
40 super((Throwable) null); 40 super((String) null);
41 if (cause == null) { 41 if (cause == null) {
42 throw new IllegalArgumentException(); 42 throw new IllegalArgumentException();
43 } 43 }
44 if (cause.getClass() == Wrap.class) { 44 if (cause.getClass() == Wrap.class) {
45 // eliminate wrapper 45 // eliminate wrapper