diff dwt/DWTException.d @ 206:cca980503056

sync with dwt-linux, removed the simple.d
author Frank Benoit <benoit@tionex.de>
date Wed, 16 Apr 2008 20:36:50 +0200
parents dc7db4338dbe
children ab60f3309436
line wrap: on
line diff
--- a/dwt/DWTException.d	Wed Apr 16 20:36:33 2008 +0200
+++ b/dwt/DWTException.d	Wed Apr 16 20:36:50 2008 +0200
@@ -35,7 +35,6 @@
  */
 
 public class DWTException : Exception {
-
     /**
      * The DWT error code, one of DWT.ERROR_*.
      */
@@ -45,7 +44,14 @@
      * The underlying throwable that caused the problem,
      * or null if this information is not available.
      */
-    public Exception throwable;
+    public Exception throwable( Exception e ){
+        this.next = e;
+        return this.next;
+    }
+    public Exception throwable(){
+        return this.next;
+    }
+
 
     //static final long serialVersionUID = 3257282552304842547L;
 
@@ -119,8 +125,7 @@
  *  @return the error message string of this DWTException object
  */
 public char[] getMessage () {
-    if (throwable is null)
-        return super.toString ();
+    if (throwable is null) return super.toString ();
     return super.toString () ~ " (" ~ throwable.toString () ~ ")"; //$NON-NLS-1$ //$NON-NLS-2$
 }
 
@@ -147,3 +152,4 @@
 
 }
 
+