Interface LauncherExitCodes
- All Known Implementing Classes:
ServiceLaunchException
Codes with a YARN prefix are YARN-related.
Many of the exit codes are designed to resemble HTTP error codes, squashed into a single byte. e.g 44 , "not found" is the equivalent of 404. The various 2XX HTTP error codes aren't followed; the Unix standard of "0" for success is used.
0-10: general command issues
30-39: equivalent to the 3XX responses, where those responses are
considered errors by the application.
40-49: client-side/CLI/config problems
50-59: service-side problems.
60+ : application specific error codes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intExit code when the configurations in valid/incomplete: 49.static final intExit code when a client requested service termination: 1.static final intExit code when the command line doesn't parse: 40, or when it is otherwise invalid.static final intExit code on connectivity problems: 48.static final intExit code when an exception was thrown from the service: 50.static final intGeneric "false/fail" response: -1.static final intForbidden action: 43.static final intExit code when a control-C, kill -3, signal was picked up: 3.static final intThe command is somehow not acceptable: 46.static final intSomething was not found: 44.static final intThe operation is not allowed: 45.static final intExit code when something happened but we can't be specific: 5.static final intThe service instance could not be created: 56.static final intThe service instance could not be created: 57.static final intService Unavailable; it may be available later: 53.static final intSuccess: 0.static final intExit code when targets could not be launched: 2.static final intThe request requires user authentication: 41.static final intUnimplemented feature: 51.static final intThe application does not support, or refuses to support this version: 55.static final intExit code when a usage message was printed: 42.
-
Field Details
-
EXIT_SUCCESS
static final int EXIT_SUCCESSSuccess: 0.- See Also:
-
EXIT_FAIL
static final int EXIT_FAILGeneric "false/fail" response: -1. The operation worked but the result was not "true" from the viewpoint of the executed code.- See Also:
-
EXIT_CLIENT_INITIATED_SHUTDOWN
static final int EXIT_CLIENT_INITIATED_SHUTDOWNExit code when a client requested service termination: 1.- See Also:
-
EXIT_TASK_LAUNCH_FAILURE
static final int EXIT_TASK_LAUNCH_FAILUREExit code when targets could not be launched: 2.- See Also:
-
EXIT_INTERRUPTED
static final int EXIT_INTERRUPTEDExit code when a control-C, kill -3, signal was picked up: 3.- See Also:
-
EXIT_OTHER_FAILURE
static final int EXIT_OTHER_FAILUREExit code when something happened but we can't be specific: 5.- See Also:
-
EXIT_COMMAND_ARGUMENT_ERROR
static final int EXIT_COMMAND_ARGUMENT_ERRORExit code when the command line doesn't parse: 40, or when it is otherwise invalid.Approximate HTTP equivalent:
400 Bad Request- See Also:
-
EXIT_UNAUTHORIZED
static final int EXIT_UNAUTHORIZEDThe request requires user authentication: 41.approximate HTTP equivalent: Approximate HTTP equivalent:
401 Unauthorized- See Also:
-
EXIT_USAGE
static final int EXIT_USAGEExit code when a usage message was printed: 42.- See Also:
-
EXIT_FORBIDDEN
static final int EXIT_FORBIDDENForbidden action: 43.Approximate HTTP equivalent: Approximate HTTP equivalent:
403: Forbidden- See Also:
-
EXIT_NOT_FOUND
static final int EXIT_NOT_FOUNDSomething was not found: 44.Approximate HTTP equivalent:
404: Not Found- See Also:
-
EXIT_OPERATION_NOT_ALLOWED
static final int EXIT_OPERATION_NOT_ALLOWEDThe operation is not allowed: 45.Approximate HTTP equivalent:
405: Not allowed- See Also:
-
EXIT_NOT_ACCEPTABLE
static final int EXIT_NOT_ACCEPTABLEThe command is somehow not acceptable: 46.Approximate HTTP equivalent:
406: Not Acceptable- See Also:
-
EXIT_CONNECTIVITY_PROBLEM
static final int EXIT_CONNECTIVITY_PROBLEMExit code on connectivity problems: 48.Approximate HTTP equivalent:
408: Request Timeout- See Also:
-
EXIT_BAD_CONFIGURATION
static final int EXIT_BAD_CONFIGURATIONExit code when the configurations in valid/incomplete: 49.Approximate HTTP equivalent:
409: Conflict- See Also:
-
EXIT_EXCEPTION_THROWN
static final int EXIT_EXCEPTION_THROWNExit code when an exception was thrown from the service: 50.Approximate HTTP equivalent:
500 Internal Server Error- See Also:
-
EXIT_UNIMPLEMENTED
static final int EXIT_UNIMPLEMENTEDUnimplemented feature: 51.Approximate HTTP equivalent:
501: Not Implemented- See Also:
-
EXIT_SERVICE_UNAVAILABLE
static final int EXIT_SERVICE_UNAVAILABLEService Unavailable; it may be available later: 53.Approximate HTTP equivalent:
503 Service Unavailable- See Also:
-
EXIT_UNSUPPORTED_VERSION
static final int EXIT_UNSUPPORTED_VERSIONThe application does not support, or refuses to support this version: 55.If raised, this is expected to be raised server-side and likely due to client/server version incompatibilities.
Approximate HTTP equivalent:
505: Version Not Supported- See Also:
-
EXIT_SERVICE_CREATION_FAILURE
static final int EXIT_SERVICE_CREATION_FAILUREThe service instance could not be created: 56.- See Also:
-
EXIT_SERVICE_LIFECYCLE_EXCEPTION
static final int EXIT_SERVICE_LIFECYCLE_EXCEPTIONThe service instance could not be created: 57.- See Also:
-