Package alluxio.util

Class ShellUtils.ExitCodeException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ShellUtils

    public static class ShellUtils.ExitCodeException
    extends java.io.IOException
    This is an IOException with exit code added.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExitCodeException​(int exitCode, java.lang.String message)
      Constructs an ExitCodeException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getExitCode()
      Gets the exit code.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExitCodeException

        public ExitCodeException​(int exitCode,
                                 java.lang.String message)
        Constructs an ExitCodeException.
        Parameters:
        exitCode - the exit code returns by shell
        message - the exception message
    • Method Detail

      • getExitCode

        public int getExitCode()
        Gets the exit code.
        Returns:
        the exit code
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable