Package org.spdx.tools
Class ExitCode
java.lang.Object
org.spdx.tools.ExitCode
Shared process exit status codes for the command line tools.
Individual tools are free to only use a subset of these - e.g. a tool with no document-level validity concept may only ever return
Values match the
Individual tools are free to only use a subset of these - e.g. a tool with no document-level validity concept may only ever return
SUCCESS or ERROR.
Values match the
CommandLine.ExitCode constants used by
picocli, a common Java CLI framework
(OK=0, SOFTWARE=1, USAGE=2).- Author:
- Arthit Suriyawongkul
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe command failed - e.g. the SPDX document is invalid, or could not be read/parsed.static final intThe command completed successfully.static final intThe command was invoked incorrectly - e.g. missing or invalid arguments. -
Method Summary
-
Field Details
-
SUCCESS
public static final int SUCCESSThe command completed successfully.- See Also:
-
ERROR
public static final int ERRORThe command failed - e.g. the SPDX document is invalid, or could not be read/parsed.- See Also:
-
USAGE_ERROR
public static final int USAGE_ERRORThe command was invoked incorrectly - e.g. missing or invalid arguments.- See Also:
-