public enum ExitCode extends Enum<ExitCode>
Buck bootstrapper must conform to the protocol, i.e. properly implement FATAL_BOOTSTRAP
Exit codes for interrupts do follow POSIX convention, i.e. 128 + SIGNAL_CODE, i.e SIGINT is returned as 128 + 2 = 130
Exit codes 1-9 are reserved for non-fatal errors, like build errors
Exit codes 10-19 are reserved for fatal errors, like unexpected runtime exceptions
Binary protocol is open to extension but closed to modification.
Enum Constant and Description |
---|
BUILD_ERROR
Build resulted in user-specific error
|
BUSY
Buck daemon is busy processing another command
|
COMMANDLINE_ERROR
User supplied incorrect command line options
|
FATAL_BOOTSTRAP
Non-recoverable error in Buck bootstrapper
|
FATAL_DISK_FULL
No space on device
|
FATAL_GENERIC
Generic Buck-internal non-recoverable error
|
FATAL_IO
Non-recoverable generic I/0 error
|
FATAL_OOM
Non-recoverable OutOfMemory error
|
FIX_FAILED
Indicates that the buck fix script returned a non-zero exit
|
NOTHING_TO_DO
There is nothing to build or evaluate for the command
|
PARSE_ERROR
There was build file parsing or graph construction error
|
RUN_ERROR
Running a binary or installing binary to a device has failed
|
SIGNAL_INTERRUPT
Command was interrupted (Ctrl + C)
|
SUCCESS
Buck command completed successfully
|
TEST_ERROR
Test run had user-specific test errors
|
TEST_NOTHING
There was no tests found to run
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
boolean |
isFatal() |
static ExitCode |
map(int code)
Map integer value received from custom toolchain subcall to one of appropriate ExitCode values.
|
static ExitCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExitCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExitCode SUCCESS
public static final ExitCode BUILD_ERROR
public static final ExitCode BUSY
public static final ExitCode COMMANDLINE_ERROR
public static final ExitCode NOTHING_TO_DO
public static final ExitCode PARSE_ERROR
public static final ExitCode RUN_ERROR
public static final ExitCode FATAL_GENERIC
public static final ExitCode FATAL_BOOTSTRAP
public static final ExitCode FATAL_OOM
public static final ExitCode FATAL_IO
public static final ExitCode FATAL_DISK_FULL
public static final ExitCode FIX_FAILED
public static final ExitCode TEST_ERROR
public static final ExitCode TEST_NOTHING
public static final ExitCode SIGNAL_INTERRUPT
public static ExitCode[] values()
for (ExitCode c : ExitCode.values()) System.out.println(c);
public static ExitCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public boolean isFatal()
public static ExitCode map(int code)