Class ExecuteException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExecuteException
    extends java.io.IOException
    An exception indicating that the executing a subprocesses failed.
    Version:
    $Id: ExecuteException.java 1636056 2014-11-01 21:12:52Z ggregory $
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Throwable cause
      The underlying cause of this exception.
      private int exitValue
      The exit value returned by the failed process
      private static long serialVersionUID
      Comment for serialVersionUID.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecuteException​(java.lang.String message, int exitValue)
      Construct a new exception with the specified detail message.
      ExecuteException​(java.lang.String message, int exitValue, java.lang.Throwable cause)
      Construct a new exception with the specified detail message and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()
      Return the underlying cause of this exception (if any).
      int getExitValue()
      Gets the exit value returned by the failed process
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, 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

      • serialVersionUID

        private static final long serialVersionUID
        Comment for serialVersionUID.
        See Also:
        Constant Field Values
      • cause

        private final java.lang.Throwable cause
        The underlying cause of this exception.
      • exitValue

        private final int exitValue
        The exit value returned by the failed process
    • Constructor Detail

      • ExecuteException

        public ExecuteException​(java.lang.String message,
                                int exitValue)
        Construct a new exception with the specified detail message.
        Parameters:
        message - The detail message
        exitValue - The exit value
      • ExecuteException

        public ExecuteException​(java.lang.String message,
                                int exitValue,
                                java.lang.Throwable cause)
        Construct a new exception with the specified detail message and cause.
        Parameters:
        message - The detail message
        exitValue - The exit value
        cause - The underlying cause
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Return the underlying cause of this exception (if any).
        Overrides:
        getCause in class java.lang.Throwable
      • getExitValue

        public int getExitValue()
        Gets the exit value returned by the failed process
        Returns:
        The exit value