Changeset 206:cca980503056 for dwt/DWTException.d
- Timestamp:
- 04/16/08 14:36:50 (9 months ago)
- Files:
-
- dwt/DWTException.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/DWTException.d
r59 r206 36 36 37 37 public class DWTException : Exception { 38 39 38 /** 40 39 * The DWT error code, one of DWT.ERROR_*. … … 46 45 * or null if this information is not available. 47 46 */ 48 public Exception throwable; 47 public Exception throwable( Exception e ){ 48 this.next = e; 49 return this.next; 50 } 51 public Exception throwable(){ 52 return this.next; 53 } 54 49 55 50 56 //static final long serialVersionUID = 3257282552304842547L; … … 120 126 */ 121 127 public char[] getMessage () { 122 if (throwable is null) 123 return super.toString (); 128 if (throwable is null) return super.toString (); 124 129 return super.toString () ~ " (" ~ throwable.toString () ~ ")"; //$NON-NLS-1$ //$NON-NLS-2$ 125 130 } … … 148 153 } 149 154 155
