Package org.zeroturnaround.exec
Class InvalidExitUtil
- java.lang.Object
-
- org.zeroturnaround.exec.InvalidExitUtil
-
class InvalidExitUtil extends java.lang.Object
Helper for checking the exit code of the finished process.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_OUTPUT_SIZE_IN_ERROR_MESSAGE
In caseInvalidExitValueException
orTimeoutException
is thrown and we have read the process output we include the output up to this length in the error message.
-
Constructor Summary
Constructors Constructor Description InvalidExitUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addExceptionMessageSuffix(ProcessAttributes attributes, java.lang.StringBuilder sb, ProcessOutput output)
static void
checkExit(ProcessAttributes attributes, ProcessResult result)
Check the process exit value.
-
-
-
Field Detail
-
MAX_OUTPUT_SIZE_IN_ERROR_MESSAGE
private static final int MAX_OUTPUT_SIZE_IN_ERROR_MESSAGE
In caseInvalidExitValueException
orTimeoutException
is thrown and we have read the process output we include the output up to this length in the error message. If the output is longer we truncate it.- See Also:
- Constant Field Values
-
-
Method Detail
-
checkExit
public static void checkExit(ProcessAttributes attributes, ProcessResult result)
Check the process exit value.
-
addExceptionMessageSuffix
public static void addExceptionMessageSuffix(ProcessAttributes attributes, java.lang.StringBuilder sb, ProcessOutput output)
-
-