From 4b67d4fed1f4ca8e4b1dd7dce47061b6b3779860 Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Mon, 14 Sep 2015 13:35:34 +0000 Subject: Prevented catching/wrapping of InterruptedExceptions, especially in BaseFunction. -- MOS_MIGRATED_REVID=102988766 --- .../java/com/google/devtools/build/lib/syntax/EvalException.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/com/google/devtools/build/lib/syntax/EvalException.java') 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 @@ -158,6 +158,14 @@ public class EvalException extends Exception { return this; } + /** + * 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. -- cgit v1.2.3