diff options
author | 2017-06-06 08:01:09 -0400 | |
---|---|---|
committer | 2017-06-06 09:51:10 -0400 | |
commit | 24e3d7a387f9e15733b01fe09e2cb03f18f8c271 (patch) | |
tree | 5c4546b870e855edd6a2c4f2c990a72b4f9147fa /src/main | |
parent | 9c0765f9fa83bfea8bd82f4001fcc8a2c2e222f0 (diff) |
Add exit codes for remote errors to ExitCode
These values are already used inside Google with specific semantics, so we
have to use these exact values (for now).
PiperOrigin-RevId: 158127273
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/util/ExitCode.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/util/ExitCode.java b/src/main/java/com/google/devtools/build/lib/util/ExitCode.java index ccfc72509f..c5743c852e 100644 --- a/src/main/java/com/google/devtools/build/lib/util/ExitCode.java +++ b/src/main/java/com/google/devtools/build/lib/util/ExitCode.java @@ -45,7 +45,13 @@ public class ExitCode { public static final ExitCode RUN_FAILURE = ExitCode.create(6, "RUN_FAILURE"); public static final ExitCode ANALYSIS_FAILURE = ExitCode.create(7, "ANALYSIS_FAILURE"); public static final ExitCode INTERRUPTED = ExitCode.create(8, "INTERRUPTED"); + + public static final ExitCode REMOTE_ENVIRONMENTAL_ERROR = + ExitCode.createInfrastructureFailure(32, "REMOTE_ENVIRONMENTAL_ERROR"); public static final ExitCode OOM_ERROR = ExitCode.createInfrastructureFailure(33, "OOM_ERROR"); + + public static final ExitCode REMOTE_ERROR = + ExitCode.createInfrastructureFailure(34, "REMOTE_ERROR"); public static final ExitCode LOCAL_ENVIRONMENTAL_ERROR = ExitCode.createInfrastructureFailure(36, "LOCAL_ENVIRONMENTAL_ERROR"); public static final ExitCode BLAZE_INTERNAL_ERROR = @@ -55,7 +61,12 @@ public class ExitCode { */ public static final ExitCode PUBLISH_ERROR = ExitCode.createInfrastructureFailure(38, "PUBLISH_ERROR"); + + public static final ExitCode REMOTE_EXECUTOR_OVERLOADED = + ExitCode.createInfrastructureFailure(39, "REMOTE_EXECUTOR_OVERLOADED"); + public static final ExitCode RESERVED = ExitCode.createInfrastructureFailure(40, "RESERVED"); + /* exit codes [50..60] and 253 are reserved for site specific wrappers to Bazel. */ |