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
An exception indicating that the executing a subprocesses failed.
- Version:
- $Id: ExecuteException.java 1636056 2014-11-01 21:12:52Z ggregory $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Throwable
The underlying cause of this exception.private final int
The exit value returned by the failed processprivate static final long
Comment forserialVersionUID
. -
Constructor Summary
ConstructorsConstructorDescriptionExecuteException
(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
Modifier and TypeMethodDescriptiongetCause()
Return the underlying cause of this exception (if any).int
Gets the exit value returned by the failed processMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDComment forserialVersionUID
.- See Also:
-
cause
The underlying cause of this exception. -
exitValue
private final int exitValueThe exit value returned by the failed process
-
-
Constructor Details
-
ExecuteException
Construct a new exception with the specified detail message.- Parameters:
message
- The detail messageexitValue
- The exit value
-
ExecuteException
Construct a new exception with the specified detail message and cause.- Parameters:
message
- The detail messageexitValue
- The exit valuecause
- The underlying cause
-
-
Method Details