1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.core.runtime; 12 13 /** 14 * This exception is thrown to blow out of a long-running method 15 * when the user cancels it. 16 * <p> 17 * This class can be used without OSGi running. 18 * </p><p> 19 * This class is not intended to be subclassed by clients but 20 * may be instantiated. 21 * </p> 22 */ 23 public final class OperationCanceledException extends RuntimeException { 24 /** 25 * All serializable objects should have a stable serialVersionUID 26 */ 27 private static final long serialVersionUID = 1L; 28 29 /** 30 * Creates a new exception. 31 */ 32 public OperationCanceledException() { 33 super(); 34 } 35 36 /** 37 * Creates a new exception with the given message. 38 * 39 * @param message the message for the exception 40 */ 41 public OperationCanceledException(String message) { 42 super(message); 43 } 44 } 45