org.zeroturnaround.exec
Class InvalidResultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
InvalidResultException(String message, ProcessResult result)
           
 
Method Summary
 int exitValue()
          Deprecated. use getExitValue()
 int getExitValue()
           
 ProcessResult getResult()
           
 ProcessResult result()
          Deprecated. use getResult()
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidResultException

public InvalidResultException(String message,
                              ProcessResult result)
Parameters:
result - 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. 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.