|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
net.sf.jomic.tools.ConsoleIOException
public class ConsoleIOException
Exception thrown by ConsoleTools.run() if the command fails.
ConsoleTools.run(String[], File, int),
Serialized Form| Constructor Summary | |
|---|---|
ConsoleIOException(java.lang.String[] newArguments,
int newExpectedExitCode,
int newActualExitCode,
java.lang.String newLastErrorMessage)
|
|
| Method Summary | |
|---|---|
int |
getActualExitCode()
Get the actual exit code the command failed with. |
java.lang.String[] |
getArguments()
Get command and arguments that failed. |
int |
getExpectedExitCode()
Get the expected exit code that would have indicated a successfull execution. |
java.lang.String |
getFullCommand()
Get the full command with all arguments. |
java.lang.String |
getLastErrorMessage()
Get the last error message written by the command to System.err(). |
java.lang.String |
getMessage()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, 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 |
|---|
public ConsoleIOException(java.lang.String[] newArguments,
int newExpectedExitCode,
int newActualExitCode,
java.lang.String newLastErrorMessage)
| Method Detail |
|---|
public int getActualExitCode()
public java.lang.String[] getArguments()
arguments[0] to refer to the
command.
public int getExpectedExitCode()
public java.lang.String getFullCommand()
public java.lang.String getLastErrorMessage()
System.err().
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||