Class ServiceLaunchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.service.exceptions.ServiceLaunchException
- All Implemented Interfaces:
Serializable,ExitCodeProvider,LauncherExitCodes
- Direct Known Subclasses:
SliderException
public class ServiceLaunchException
extends org.apache.hadoop.yarn.exceptions.YarnException
implements ExitCodeProvider, LauncherExitCodes
A service launch exception that includes an exit code;
when caught by the ServiceLauncher, it will convert that
into a process exit code.
- See Also:
-
Field Summary
Fields inherited from interface org.apache.hadoop.yarn.service.exceptions.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_UNAUTHORIZED, EXIT_UNIMPLEMENTED, EXIT_UNSUPPORTED_VERSION, EXIT_USAGE -
Constructor Summary
ConstructorsConstructorDescriptionServiceLaunchException(int exitCode, String message) Create an exception with the specific exit code and textServiceLaunchException(int exitCode, String message, Throwable cause) Create an exception with the specific exit code, text and causeServiceLaunchException(int exitCode, Throwable cause) Create an exception with the specific exit code -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceLaunchException
Create an exception with the specific exit code- Parameters:
exitCode- exit codecause- cause of the exception
-
ServiceLaunchException
Create an exception with the specific exit code and text- Parameters:
exitCode- exit codemessage- message to use in exception
-
ServiceLaunchException
Create an exception with the specific exit code, text and cause- Parameters:
exitCode- exit codemessage- message to use in exceptioncause- cause of the exception
-
-
Method Details
-
getExitCode
public int getExitCode()Get the exit code- Specified by:
getExitCodein interfaceExitCodeProvider- Returns:
- the exit code
-