diff base/src/java/lang/exceptions.d @ 84:fcf926c91ca4

Added base classes
author Frank Benoit <benoit@tionex.de>
date Sat, 18 Apr 2009 09:25:29 +0200
parents 66be6a990713
children 48d4ee626868
line wrap: on
line diff
--- a/base/src/java/lang/exceptions.d	Tue Apr 14 13:22:56 2009 +0200
+++ b/base/src/java/lang/exceptions.d	Sat Apr 18 09:25:29 2009 +0200
@@ -101,6 +101,9 @@
     this( Exception e ){
         super(e.toString);
     }
+    public String getMessage(){
+        return msg;
+    }
 }
 
 class RuntimeException : Exception {
@@ -114,6 +117,9 @@
         super(e.toString);
         next = e;
     }
+    public String getMessage(){
+        return msg;
+    }
     public Throwable getCause() {
         return next; // D2 has next of type Throwable
     }