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:
java.io.Serializable
- Direct Known Subclasses:
InvalidExitValueException
,InvalidOutputException
public class InvalidResultException extends java.lang.RuntimeException
Process finished with an unexpected result.- Since:
- 1.8
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ProcessResult
result
Actual exit value and process output.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description InvalidResultException(java.lang.String message, ProcessResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
exitValue()
Deprecated.usegetExitValue()
int
getExitValue()
ProcessResult
getResult()
ProcessResult
result()
Deprecated.usegetResult()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
result
private final ProcessResult result
Actual exit value and process output.
-
-
Constructor Detail
-
InvalidResultException
public InvalidResultException(java.lang.String message, ProcessResult result)
- Parameters:
message
- the detail message of the exceptionresult
- result of execution (contains also the exit value)
-
-
Method Detail
-
getResult
public ProcessResult getResult()
- Returns:
- actual process result.
-
getExitValue
public int getExitValue()
- Returns:
- the exit value of the finished process.
-
result
public ProcessResult result()
Deprecated.usegetResult()
- Returns:
- actual process result.
-
exitValue
public int exitValue()
Deprecated.usegetExitValue()
- Returns:
- the exit value of the finished process.
-
-