do not self-wrap ProcessCanceledException to fix EA-92422 - AUCRRAE: ReadMostlyRWLock.throwIfImpatient

This commit is contained in:
Alexey Kudravtsev
2016-12-06 12:14:17 +03:00
parent 9ab0dd4220
commit 50199c13d9
3 changed files with 4 additions and 6 deletions
@@ -23,11 +23,6 @@ public class DiffTooBigException extends ProcessCanceledException {
public DiffTooBigException() {
}
public DiffTooBigException(Throwable cause) {
super(cause);
}
@Override
public String getMessage() {
return MESSAGE;
@@ -23,5 +23,8 @@ public class ProcessCanceledException extends RuntimeException implements Contro
public ProcessCanceledException(@NotNull Throwable cause) {
super(cause);
if (cause instanceof ProcessCanceledException) {
throw new IllegalArgumentException("Must not self-wrap ProcessCanceledException: " + cause);
}
}
}
@@ -133,7 +133,7 @@ final class ObjectNode<T> {
myTree.fireExecuted(myObject);
}
catch (ProcessCanceledException e) {
throw new ProcessCanceledException(e);
throw e;
}
catch (Throwable e) {
LOG.error(e);