Mercurial > projects > dwt2
comparison org.eclipse.equinox.common/src/org/eclipse/core/runtime/OperationCanceledException.d @ 105:bbe49769ec18
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 08 Nov 2009 12:42:30 +0100 |
parents | bc29606a740c |
children |
comparison
equal
deleted
inserted
replaced
104:88652073d1c2 | 105:bbe49769ec18 |
---|---|
2 * Copyright (c) 2000, 2008 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 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | 10 *******************************************************************************/ |
13 module org.eclipse.core.runtime.OperationCanceledException; | 11 // Port to the D programming language: |
12 // Frank Benoit <benoit@tionex.de> | |
13 module org.eclipse.core.runtimeOperationCanceledException; | |
14 | 14 |
15 import java.lang.all; | 15 import java.lang.all; |
16 | 16 |
17 | |
17 /** | 18 /** |
18 * This exception is thrown to blow out of a long-running method | 19 * This exception is thrown to blow out of a long-running method |
19 * when the user cancels it. | 20 * when the user cancels it. |
20 * <p> | 21 * <p> |
21 * This class can be used without OSGi running. | 22 * This class can be used without OSGi running. |
22 * </p><p> | 23 * </p><p> |
23 * This class is not intended to be subclassed by clients but | 24 * This class is not intended to be subclassed by clients but |
27 */ | 28 */ |
28 public final class OperationCanceledException : RuntimeException { | 29 public final class OperationCanceledException : RuntimeException { |
29 /** | 30 /** |
30 * All serializable objects should have a stable serialVersionUID | 31 * All serializable objects should have a stable serialVersionUID |
31 */ | 32 */ |
32 private static const long serialVersionUID = 1L; | 33 private static final long serialVersionUID = 1L; |
33 | 34 |
34 /** | 35 /** |
35 * Creates a new exception. | 36 * Creates a new exception. |
36 */ | 37 */ |
37 public this() { | 38 public this() { |
38 super(); | 39 super(); |
39 } | 40 } |
40 | 41 |
41 /** | 42 /** |
42 * Creates a new exception with the given message. | 43 * Creates a new exception with the given message. |
43 * | 44 * |
44 * @param message the message for the exception | 45 * @param message the message for the exception |
45 */ | 46 */ |
46 public this(String message) { | 47 public this(String message) { |
47 super(message); | 48 super(message); |
48 } | 49 } |