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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe exit value returned by the failed process.private static final longComment forserialVersionUID. -
Constructor Summary
ConstructorsConstructorDescriptionExecuteException(String message, int exitValue) Constructs a new exception with the specified detail message.ExecuteException(String message, int exitValue, Throwable cause) Constructs a new exception with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionintGets the exit value returned by the failed process.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDComment forserialVersionUID.- See Also:
-
exitValue
private final int exitValueThe exit value returned by the failed process.
-
-
Constructor Details
-
ExecuteException
Constructs a new exception with the specified detail message.- Parameters:
message- The detail message.exitValue- The exit value.
-
ExecuteException
-
-
Method Details
-
getExitValue
public int getExitValue()Gets the exit value returned by the failed process.- Returns:
- The exit value.
-