org.im4java.process
Class ProcessEvent

java.lang.Object
  extended by 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.
 
Constructor Summary
ProcessEvent()
          Default constructor.
 
Method Summary
 java.lang.Exception getException()
           
 int getReturnCode()
           
 void setException(java.lang.Exception pException)
           
 void setReturnCode(int pReturnCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

ProcessEvent

public ProcessEvent()
Default constructor.

Method Detail

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