diff dwt/DWTError.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/DWTError.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/DWTError.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 error is thrown whenever an unrecoverable error
@@ -80,7 +81,7 @@
  *
  * @param message the detail message for the exception
  */
-public this (char[] message) {
+public this (String message) {
     this (DWT.ERROR_UNSPECIFIED, message);
 }
 
@@ -103,7 +104,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;
 }
@@ -132,7 +133,7 @@
  *  </p>
  *  @return the error message string of this DWTError 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$