aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/syntax/EvalException.java
diff options
context:
space:
mode:
authorGravatar Florian Weikert <fwe@google.com>2015-09-14 13:35:34 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-09-14 15:40:49 +0000
commit4b67d4fed1f4ca8e4b1dd7dce47061b6b3779860 (patch)
treeeb79083b8d1335d71b27e69d6003d7e7ef12ad72 /src/main/java/com/google/devtools/build/lib/syntax/EvalException.java
parent835ec9e63b9788b7d573cb78fa27b8cbfb5732d9 (diff)
Prevented catching/wrapping of InterruptedExceptions, especially in BaseFunction.
-- MOS_MIGRATED_REVID=102988766
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/syntax/EvalException.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/EvalException.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/EvalException.java b/src/main/java/com/google/devtools/build/lib/syntax/EvalException.java
index 186153e5b2..aec9f2b266 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/EvalException.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/EvalException.java
@@ -159,6 +159,14 @@ public class EvalException extends Exception {
}
/**
+ * Returns whether this exception can be added to a stack trace created by {@link
+ * EvalExceptionWithStackTrace}.
+ */
+ public boolean canBeAddedToStackTrace() {
+ return true;
+ }
+
+ /**
* A class to support a special case of EvalException when the cause of the error is an
* Exception during a direct Java call. Allow the throwing code to provide context in a message.
*/