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, toStringpublic ExitValueException(String message, int exitValue)
message - the error messageexitValue - the exit value, must be different from zeroIllegalArgumentException - if exitValue==0public 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==0public int getExitValue()
public String getMessage()
getMessage in class Throwablepublic void setInput(Input input)
input - the input source or file that was causing the exceptionCopyright © 2025. All rights reserved.