changeset 231:654b7d7cc33c

instead of throwable member var, use the Exception.next
author Frank Benoit <benoit@tionex.de>
date Wed, 16 Apr 2008 20:19:29 +0200
parents 19ce131cbd99
children 09234db16370
files dwt/DWTError.d dwt/DWTException.d
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/DWTError.d	Sun Apr 13 23:56:13 2008 +0200
+++ b/dwt/DWTError.d	Wed Apr 16 20:19:29 2008 +0200
@@ -53,7 +53,13 @@
      * 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 = 3833467327105808433L;
 
--- a/dwt/DWTException.d	Sun Apr 13 23:56:13 2008 +0200
+++ b/dwt/DWTException.d	Wed Apr 16 20:19:29 2008 +0200
@@ -44,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;