Mercurial > projects > dwt-linux
diff dwt/SWTException.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/SWTException.d Sat Jan 12 07:02:08 2008 +0100 +++ b/dwt/SWTException.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 @@ -33,18 +33,18 @@ */ public class SWTException : TracedException { - /** - * The SWT error code, one of SWT.ERROR_*. - */ - public int code; + /** + * The SWT error code, one of SWT.ERROR_*. + */ + 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 = 3257282552304842547L; + //static final long serialVersionUID = 3257282552304842547L; /** * Constructs a new instance of this class with its @@ -52,7 +52,7 @@ * unspecified value. */ public this () { - this (SWT.ERROR_UNSPECIFIED); + this (SWT.ERROR_UNSPECIFIED); } /** @@ -64,7 +64,7 @@ * @param message the detail message for the exception */ public this (char[] message) { - this (SWT.ERROR_UNSPECIFIED, message); + this (SWT.ERROR_UNSPECIFIED, message); } /** @@ -74,7 +74,7 @@ * @param code the SWT error code */ public this (int code) { - this (code, SWT.findErrorText (code)); + this (code, SWT.findErrorText (code)); } /** @@ -87,8 +87,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; } /** @@ -104,7 +104,7 @@ * @since 3.1 */ public TracedException getCause() { - return throwable; + return throwable; } /** @@ -116,8 +116,8 @@ * @return the error message string of this SWTException object */ public char[] getMessage () { - if (throwable is null) return super.toString (); - return super.toString () ~ " (" ~ throwable.toString () ~ ")"; //$NON-NLS-1$ //$NON-NLS-2$ + if (throwable is null) return super.toString (); + return super.toString () ~ " (" ~ throwable.toString () ~ ")"; //$NON-NLS-1$ //$NON-NLS-2$ } /** @@ -134,11 +134,11 @@ Stderr.formatln( "{}", msg ); } if ( throwable !is null) { - Stderr.formatln ("*** Stack trace of contained exception ***"); //$NON-NLS-1$ + Stderr.formatln ("*** Stack trace of contained exception ***"); //$NON-NLS-1$ foreach( msg; throwable ){ Stderr.formatln( "{}", msg ); } - } + } } }