Class CommandFailedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CommandFailedException
    extends java.lang.Exception
    Thrown when an external command failed
    Since:
    4.5
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandFailedException​(int returnCode, java.lang.String message)
      Constructor for CommandFailedException
      CommandFailedException​(int returnCode, java.lang.String message, java.lang.Throwable cause)
      Constructor for CommandFailedException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getReturnCode()
      Get return code returned by the command
      • Methods inherited from class java.lang.Throwable

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

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

      • returnCode

        private int returnCode
    • Constructor Detail

      • CommandFailedException

        public CommandFailedException​(int returnCode,
                                      java.lang.String message)
        Constructor for CommandFailedException
        Parameters:
        returnCode - return code returned by the command
        message - error message
      • CommandFailedException

        public CommandFailedException​(int returnCode,
                                      java.lang.String message,
                                      java.lang.Throwable cause)
        Constructor for CommandFailedException
        Parameters:
        returnCode - return code returned by the command
        message - error message
        cause - exception causing this exception
    • Method Detail

      • getReturnCode

        public int getReturnCode()
        Get return code returned by the command
        Returns:
        return code returned by the command