public class ExitValueException extends RuntimeException
Constructor and Description |
---|
ExitValueException(String message,
int exitValue)
Constructor with message and non-zero exit value.
|
ExitValueException(String message,
int exitValue,
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.
|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ExitValueException(String message, int exitValue)
message
- the error messageexitValue
- the exit value, must be different from zeroIllegalArgumentException
- if exitValue==0
public ExitValueException(String message, int exitValue, Throwable cause)
message
- the error messageexitValue
- the exit value, must be different from zerocause
- the exception that caused the error termination of the commandIllegalArgumentException
- if exitValue==0
public int getExitValue()
public String getMessage()
getMessage
in class Throwable
public void setInput(Input input)
input
- the input source or file that was causing the exceptionCopyright © 2024. All rights reserved.