public class ServiceLaunchException extends org.apache.hadoop.yarn.exceptions.YarnException implements ExitCodeProvider, LauncherExitCodes
EXIT_CLIENT_INITIATED_SHUTDOWN, EXIT_COMMAND_ARGUMENT_ERROR, EXIT_CONFLICT, EXIT_CONNECTIVITY_PROBLEM, EXIT_EXCEPTION_THROWN, EXIT_FALSE, EXIT_FORBIDDEN, EXIT_FOUND, EXIT_INTERNAL_ERROR, EXIT_INTERRUPTED, EXIT_MOVED, EXIT_NOT_ACCEPTABLE, EXIT_NOT_FOUND, EXIT_NOT_MODIFIED, EXIT_OPERATION_NOT_ALLOWED, EXIT_OTHER_FAILURE, EXIT_SERVICE_UNAVAILABLE, EXIT_SUCCESS, EXIT_TASK_LAUNCH_FAILURE, EXIT_UNAUTHORIZE, EXIT_UNIMPLEMENTED, EXIT_UNSUPPORTED_VERSION, EXIT_USAGE| Constructor and Description |
|---|
ServiceLaunchException(int exitCode,
String message)
Create an exception with the specific exit code and text
|
ServiceLaunchException(int exitCode,
String message,
Throwable cause)
Create an exception with the specific exit code, text and cause
|
ServiceLaunchException(int exitCode,
Throwable cause)
Create an exception with the specific exit code
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExitCode()
Get the exit code
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceLaunchException(int exitCode,
Throwable cause)
exitCode - exit codecause - cause of the exceptionpublic ServiceLaunchException(int exitCode,
String message)
exitCode - exit codemessage - message to use in exceptionpublic int getExitCode()
getExitCode in interface ExitCodeProviderCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.