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:
  • Constructor Details

    • ServiceLaunchException

      public ServiceLaunchException(int exitCode, Throwable cause)
      Create an exception with the specific exit code
      Parameters:
      exitCode - exit code
      cause - cause of the exception
    • ServiceLaunchException

      public ServiceLaunchException(int exitCode, String message)
      Create an exception with the specific exit code and text
      Parameters:
      exitCode - exit code
      message - message to use in exception
    • ServiceLaunchException

      public ServiceLaunchException(int exitCode, String message, Throwable cause)
      Create an exception with the specific exit code, text and cause
      Parameters:
      exitCode - exit code
      message - message to use in exception
      cause - cause of the exception
  • Method Details

    • getExitCode

      public int getExitCode()
      Get the exit code
      Specified by:
      getExitCode in interface ExitCodeProvider
      Returns:
      the exit code