diff dwt/SWTError.d @ 59:8cec8f536af3

All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
author Frank Benoit <benoit@tionex.de>
date Sat, 12 Jan 2008 08:44:23 +0100
parents 63c023465156
children
line wrap: on
line diff
--- a/dwt/SWTError.d	Sat Jan 12 07:02:08 2008 +0100
+++ b/dwt/SWTError.d	Sat Jan 12 08:44:23 2008 +0100
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*******************************************************************************
  * Copyright (c) 2000, 2005 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
@@ -45,13 +45,13 @@
     /**
      * The SWT error code, one of SWT.ERROR_*.
      */
-	public int code;
+    public int code;
 
-	/**
-	 * The underlying throwable that caused the problem,
-	 * or null if this information is not available.
-	 */
-	public TracedException throwable;
+    /**
+     * The underlying throwable that caused the problem,
+     * or null if this information is not available.
+     */
+    public TracedException throwable;
 
     //static final long serialVersionUID = 3833467327105808433L;
 
@@ -61,7 +61,7 @@
  * unspecified value.
  */
 public this () {
-	this (SWT.ERROR_UNSPECIFIED);
+    this (SWT.ERROR_UNSPECIFIED);
 }
 
 /**
@@ -73,7 +73,7 @@
  * @param message the detail message for the exception
  */
 public this (char[] message) {
-	this (SWT.ERROR_UNSPECIFIED, message);
+    this (SWT.ERROR_UNSPECIFIED, message);
 }
 
 /**
@@ -83,7 +83,7 @@
  * @param code the SWT error code
  */
 public this (int code) {
-	this (code, SWT.findErrorText (code));
+    this (code, SWT.findErrorText (code));
 }
 
 /**
@@ -96,8 +96,8 @@
  * @param message the detail message for the exception
  */
 public this (int code, char[] message) {
-	super (message);
-	this.code = code;
+    super (message);
+    this.code = code;
 }
 
 /**
@@ -113,7 +113,7 @@
  * @since 3.1
  */
 public Exception getCause() {
-	return throwable;
+    return throwable;
 }
 
 /**
@@ -125,9 +125,9 @@
  *  @return the error message string of this SWTError object
  */
 public char[] getMessage () {
-	if (throwable is null)
+    if (throwable is null)
         return super.toString();
-	return super.toString () ~ " (" ~ throwable.toString () ~ ")"; //$NON-NLS-1$ //$NON-NLS-2$
+    return super.toString () ~ " (" ~ throwable.toString () ~ ")"; //$NON-NLS-1$ //$NON-NLS-2$
 }
 
 /**
@@ -143,12 +143,12 @@
     foreach( msg; this ){
         Stderr.formatln( "{}", msg );
     }
-	if ( throwable !is null) {
-		Stderr.formatln ("*** Stack trace of contained error ***"); //$NON-NLS-1$
+    if ( throwable !is null) {
+        Stderr.formatln ("*** Stack trace of contained error ***"); //$NON-NLS-1$
         foreach( msg; throwable ){
             Stderr.formatln( "{}", msg );
         }
-	}
+    }
 }
 
 }