Mercurial > projects > dwt-mac
comparison dwt/DWTError.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | db5a898b2119 |
children |
comparison
equal
deleted
inserted
replaced
44:ca5e494f2bbf | 45:d8635bb48c7c |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2005 IBM Corporation and others. | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
27 * provide a further description of the problem. The exception | 27 * provide a further description of the problem. The exception |
28 * has a <code>throwable</code> field which holds the underlying | 28 * has a <code>throwable</code> field which holds the underlying |
29 * throwable that caused the problem (if this information is | 29 * throwable that caused the problem (if this information is |
30 * available (i.e. it may be null)). | 30 * available (i.e. it may be null)). |
31 * <p> | 31 * <p> |
32 * SWTErrors are thrown when something fails internally which | 32 * DWTErrors are thrown when something fails internally which |
33 * either leaves DWT in an unknown state (eg. the o/s call to | 33 * either leaves DWT in an unknown state (eg. the o/s call to |
34 * remove an item from a list returns an error code) or when DWT | 34 * remove an item from a list returns an error code) or when DWT |
35 * is left in a known-to-be-unrecoverable state (eg. it runs out | 35 * is left in a known-to-be-unrecoverable state (eg. it runs out |
36 * of callback resources). SWTErrors should not occur in typical | 36 * of callback resources). DWTErrors should not occur in typical |
37 * programs, although "high reliability" applications should | 37 * programs, although "high reliability" applications should |
38 * still catch them. | 38 * still catch them. |
39 * </p><p> | 39 * </p><p> |
40 * This class also provides support methods used by DWT to match | 40 * This class also provides support methods used by DWT to match |
41 * error codes to the appropriate exception class (DWTError, | 41 * error codes to the appropriate exception class (DWTError, |
43 * human readable strings for DWT error codes. | 43 * human readable strings for DWT error codes. |
44 * </p> | 44 * </p> |
45 * | 45 * |
46 * @see DWTException | 46 * @see DWTException |
47 * @see DWT#error(int) | 47 * @see DWT#error(int) |
48 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
48 */ | 49 */ |
49 | 50 |
50 public class DWTError : Error { | 51 public class DWTError : Error { |
51 /** | 52 /** |
52 * The DWT error code, one of DWT.ERROR_*. | 53 * The DWT error code, one of DWT.ERROR_*. |