Package org.zeroturnaround.exec
Class InvalidResultException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.zeroturnaround.exec.InvalidResultException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidExitValueException
,InvalidOutputException
Process finished with an unexpected result.
- Since:
- 1.8
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ProcessResult
Actual exit value and process output.private static final long
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
result
Actual exit value and process output.
-
-
Constructor Details
-
InvalidResultException
- Parameters:
message
- the detail message of the exceptionresult
- result of execution (contains also the exit value)
-
-
Method Details
-
getResult
- Returns:
- actual process result.
-
getExitValue
public int getExitValue()- Returns:
- the exit value of the finished process.
-
result
Deprecated.usegetResult()
- Returns:
- actual process result.
-
exitValue
public int exitValue()Deprecated.usegetExitValue()
- Returns:
- the exit value of the finished process.
-
getExitValue()