diff dwt/DWTError.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents 654b7d7cc33c
children c0d810de7093
line wrap: on
line diff
--- a/dwt/DWTError.d	Sat Apr 26 10:01:30 2008 +0200
+++ b/dwt/DWTError.d	Mon May 05 00:42:55 2008 +0200
@@ -12,6 +12,8 @@
  *******************************************************************************/
 module dwt.DWTError;
 
+import dwt.dwthelper.utils;
+
 import dwt.DWT;
 
 import tango.core.Exception;
@@ -80,7 +82,7 @@
  *
  * @param message the detail message for the exception
  */
-public this (char[] message) {
+public this (String message) {
     this (DWT.ERROR_UNSPECIFIED, message);
 }
 
@@ -103,7 +105,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 +134,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$