comparison dwtx/core/commands/common/CommandException.d @ 43:ea8ff534f622

Fix override and super aliases
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Apr 2008 01:24:25 +0200
parents 6518c18a01f7
children 46a6e0e6ccd4
comparison
equal deleted inserted replaced
42:4567a6f54939 43:ea8ff534f622
26 26
27 /** 27 /**
28 * This member variable is required here to allow us to compile against JCL 28 * This member variable is required here to allow us to compile against JCL
29 * foundation libraries. The value may be <code>null</code>. 29 * foundation libraries. The value may be <code>null</code>.
30 */ 30 */
31 private Exception cause; 31 // private Exception cause;
32 32
33 /** 33 /**
34 * Creates a new instance of this class with the specified detail message. 34 * Creates a new instance of this class with the specified detail message.
35 * 35 *
36 * @param message 36 * @param message
50 * the cause; may be <code>null</code>. 50 * the cause; may be <code>null</code>.
51 */ 51 */
52 public this(String message, Exception cause) { 52 public this(String message, Exception cause) {
53 super(message); 53 super(message);
54 // don't pass the cause to super, to allow compilation against JCL Foundation 54 // don't pass the cause to super, to allow compilation against JCL Foundation
55 this.cause = cause; 55 this.next = cause;
56 } 56 }
57 57
58 /** 58 /**
59 * Returns the cause of this throwable or <code>null</code> if the 59 * Returns the cause of this throwable or <code>null</code> if the
60 * cause is nonexistent or unknown. 60 * cause is nonexistent or unknown.
61 * 61 *
62 * @return the cause or <code>null</code> 62 * @return the cause or <code>null</code>
63 */ 63 */
64 public Exception getCause() { 64 public /+override+/ Exception getCause() {
65 return cause; 65 return next;
66 } 66 }
67 67
68 } 68 }