diff options
author | 2017-12-13 10:17:44 -0800 | |
---|---|---|
committer | 2017-12-13 10:19:39 -0800 | |
commit | 0c349543eb5551f2eebe6177e72e0041d5415350 (patch) | |
tree | b8dd9f9bfb2d014944bc2b6628da51211febac5d /src/main/java/com/google/devtools/build/lib/analysis/actions | |
parent | a9cd97c8075e1d7f3a2662795bde7afffa940dd3 (diff) |
Allow not recognized Artifact category to be handled in Analysis phase
Nonexistent artifact categories or categories that are not supported by the action config now throw InvalidConfigurationException instead of ExpansionException. This allows the checked exception to be caught and reported as a RuleErrorException in Analysis phase.
RELNOTES: None.
PiperOrigin-RevId: 178919727
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/actions')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/actions/ActionTemplate.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/ActionTemplate.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/ActionTemplate.java index c48378fd23..5fbc5ea5c8 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/actions/ActionTemplate.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/ActionTemplate.java @@ -60,6 +60,10 @@ public interface ActionTemplate<T extends Action> extends ActionAnalysisMetadata public ActionTemplateExpansionException(String cause) { super(cause); } + + public ActionTemplateExpansionException(Throwable cause) { + super(cause); + } } /** |