Package org.zeroturnaround.exec
Class InvalidExitUtil
java.lang.Object
org.zeroturnaround.exec.InvalidExitUtil
Helper for checking the exit code of the finished process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addExceptionMessageSuffix
(ProcessAttributes attributes, StringBuilder sb, ProcessOutput output) static void
checkExit
(ProcessAttributes attributes, ProcessResult result) Check the process exit value.
-
Field Details
-
MAX_OUTPUT_SIZE_IN_ERROR_MESSAGE
private static final int MAX_OUTPUT_SIZE_IN_ERROR_MESSAGEIn 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:
-
-
Constructor Details
-
InvalidExitUtil
InvalidExitUtil()
-
-
Method Details
-
checkExit
Check the process exit value. -
addExceptionMessageSuffix
public static void addExceptionMessageSuffix(ProcessAttributes attributes, StringBuilder sb, ProcessOutput output)
-