diff dwt/DWTException.d @ 212:ab60f3309436

reverted the char[] to String and use the an alias.
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:12:38 +0200
parents cca980503056
children fd9c62a2998e
line wrap: on
line diff
--- a/dwt/DWTException.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/DWTException.d	Mon May 05 00:12:38 2008 +0200
@@ -16,6 +16,7 @@
 
 import tango.core.Exception;
 import tango.io.Stdout;
+import dwt.dwthelper.utils;
 
 /**
  * This runtime exception is thrown whenever a recoverable error
@@ -72,7 +73,7 @@
  *
  * @param message the detail message for the exception
  */
-public this (char[] message) {
+public this (String message) {
     this (DWT.ERROR_UNSPECIFIED, message);
 }
 
@@ -95,7 +96,7 @@
  * @param code the DWT error code
  * @param message the detail message for the exception
  */
-public this (int code, char[] message) {
+public this (int code, String message) {
     super (message);
     this.code = code;
 }
@@ -124,7 +125,7 @@
  *  </p>
  *  @return the error message string of this DWTException object
  */
-public char[] getMessage () {
+public String getMessage () {
     if (throwable is null) return super.toString ();
     return super.toString () ~ " (" ~ throwable.toString () ~ ")"; //$NON-NLS-1$ //$NON-NLS-2$
 }