/*
 * Copyright 2000-2015 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.openapi.progress;

import com.intellij.openapi.diagnostic.ControlFlowException;
import org.jetbrains.annotations.Nullable;

public class ProcessCanceledException extends RuntimeException implements ControlFlowException {
  public ProcessCanceledException() { }

  public ProcessCanceledException(@Nullable Throwable cause) {
    super(cause);
    if (cause instanceof ProcessCanceledException) {
      throw new IllegalArgumentException("Must not self-wrap ProcessCanceledException: ", cause);
    }
  }
}

@@ -739,16 +739,767 @@
 lable;%0A%0A
+/**%0A * An exception indicating that the currently running operation was terminated and should finish as soon as possible.%0A * Normally this exception should not be caught, swallowed, logged or handled in any way.%0A * It should be rethrown so that the infrastructure could handle it correctly.%0A * This exception can happen during almost any IDE activity, e.g. any PSI query,%0A * %7B@link com.intellij.openapi.extensions.ExtensionPointName#getExtensions%7D,%0A * %7B@link com.intellij.openapi.actionSystem.AnAction#update%7D, etc.%3Cp%3E%3C/p%3E%0A *%0A * @see com.intellij.openapi.progress.ProgressIndicator#checkCanceled()%0A * @see %3Ca href=%22https://www.jetbrains.org/intellij/sdk/docs/basics/architectural_overview/general_threading_rules.html%22%3EGeneral Threading Rules%3C/a%3E%0A */%0A
 public c

add some javadoc to ProcessCanceledException