Use the same way to check for ProcessCanceledException everywhere

This commit is contained in:
Valentin Kipyatkov
2017-06-01 17:14:38 +03:00
parent eb4f322c77
commit 61d9a6b9cd
6 changed files with 13 additions and 90 deletions
@@ -78,8 +78,7 @@ public class WrappedValues {
if (value instanceof ThrowableWrapper) {
Throwable originThrowable = ((ThrowableWrapper) value).getThrowable();
if (throwWrappedProcessCanceledException &&
originThrowable.getClass().getName().equals("com.intellij.openapi.progress.ProcessCanceledException")) {
if (throwWrappedProcessCanceledException && ExceptionUtilsKt.isProcessCanceledException(originThrowable)) {
throw new WrappedProcessCanceledException(originThrowable);
}