org.im4java.process
Class ProcessEvent
java.lang.Object
org.im4java.process.ProcessEvent
public class ProcessEvent
- extends java.lang.Object
This class wraps return-code and Exceptions of a terminated process.
- Version:
- $Revision: 1.1 $
- Author:
- $Author: bablokb $
Field Summary |
private java.lang.Exception |
iException
If this field is not null, the process ended with this exception. |
private int |
iReturnCode
The return-code of the process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iReturnCode
private int iReturnCode
- The return-code of the process. Note that this field is only valid, if
no exception occured.
iException
private java.lang.Exception iException
- If this field is not null, the process ended with this exception.
ProcessEvent
public ProcessEvent()
- Default constructor.
setReturnCode
public void setReturnCode(int pReturnCode)
- Parameters:
pReturnCode
- the iReturnCode to set
getReturnCode
public int getReturnCode()
- Returns:
- the iReturnCode
setException
public void setException(java.lang.Exception pException)
- Parameters:
pException
- the iException to set
getException
public java.lang.Exception getException()
- Returns:
- the iException