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
public class InvalidResultException
- extends RuntimeException
Process finished with an unexpected result.
- Since:
- 1.8
- Author:
- Rein Raudjärv
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InvalidResultException
public InvalidResultException(String message,
ProcessResult result)
- Parameters:
result - result of execution (contains also the exit value)
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. use
getResult()
- Returns:
- actual process result.
exitValue
public int exitValue()
- Deprecated. use
getExitValue()
- Returns:
- the exit value of the finished process.
Copyright © 2015 ZeroTurnaround. All rights reserved.