|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.compile.CompileResult
public class CompileResult
This class describes the result of the compilation.
This class is here because error handling is not straight-forward with regard to compilation. The error condition consists of an error message, the full command line which failed to execute plus it's stdout and stderr. The reason for this class to exist is that there are three possible reactions to the error (chosen by the user).
| Field Summary | |
|---|---|
static int |
ACTION_ABORT
|
static int |
ACTION_CONTINUE
|
static int |
ACTION_RECONFIGURE
|
static int |
FAILED
|
static int |
SUCCESS
|
| Constructor Summary | |
|---|---|
CompileResult()
constructor, create a new successful result |
|
CompileResult(Exception anException)
Creates a result because of exception. |
|
CompileResult(String message,
List<String> cmdline,
String stdout,
String stderr)
creates a new CompileResult with status FAILED |
|
| Method Summary | |
|---|---|
int |
getAction()
|
String |
getCmdline()
get command line of failed command as a string |
String |
getMessage()
return error message |
int |
getStatus()
|
String |
getStderr()
|
String |
getStdout()
|
boolean |
isAbort()
check whether to abort (convenience function) |
boolean |
isContinue()
check whether to continue (convenience function) |
boolean |
isReconfigure()
check whether to reconfigure (convenience function) |
boolean |
isSuccess()
check for success (convenience function) |
void |
setAction(int action)
|
void |
setStatus(int status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SUCCESS
public static final int FAILED
public static final int ACTION_ABORT
public static final int ACTION_CONTINUE
public static final int ACTION_RECONFIGURE
| Constructor Detail |
|---|
public CompileResult()
public CompileResult(Exception anException)
anException - The exception.
public CompileResult(String message,
List<String> cmdline,
String stdout,
String stderr)
message - description of the exceptioncmdline - full command line of failed commandstdout - standard output of failed commandstderr - standard error of failed command| Method Detail |
|---|
public void setStatus(int status)
public int getStatus()
public void setAction(int action)
public int getAction()
public boolean isSuccess()
public boolean isAbort()
public boolean isContinue()
public boolean isReconfigure()
public String getMessage()
public String getCmdline()
public String getStdout()
public String getStderr()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||