Package org.apache.commons.exec
Class ExecuteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.commons.exec.ExecuteException
-
- All Implemented Interfaces:
Serializable
public class ExecuteException extends IOException
An exception indicating that the executing a subprocesses failed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecuteException(String message, int exitValue)
Construct a new exception with the specified detail message.ExecuteException(String message, int exitValue, 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 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
-
-
-
-
Constructor Detail
-
ExecuteException
public ExecuteException(String message, int exitValue)
Construct a new exception with the specified detail message.- Parameters:
message
- The detail messageexitValue
- The exit value
-
-