public class ExitValueException extends java.lang.RuntimeException
| Constructor and Description |
|---|
ExitValueException(java.lang.String message,
int exitValue)
Constructor with message and non-zero exit value.
|
ExitValueException(java.lang.String message,
int exitValue,
java.lang.Throwable cause)
Constructor with message, a non-zero exit value and a causing exception.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExitValue()
Returns the exit value, an int value or error code different from zero
that was passed to the constructor of this exception.
|
Input |
getInput()
Returns the input source that was causing this exception, for instance an
input file that was passed to a command.
|
java.lang.String |
getMessage() |
void |
setInput(Input input)
Sets the input source that was causing this exception, for instance an
input file that was passed to a command.
|
public ExitValueException(java.lang.String message, int exitValue)
message - the error messageexitValue - the exit value, must be different from zerojava.lang.IllegalArgumentException - if exitValue==0public ExitValueException(java.lang.String message, int exitValue, java.lang.Throwable cause)
message - the error messageexitValue - the exit value, must be different from zerocause - the exception that caused the error termination of the commandjava.lang.IllegalArgumentException - if exitValue==0public int getExitValue()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setInput(Input input)
input - the input source or file that was causing the exceptionCopyright © 2021. All Rights Reserved.