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 intIn caseInvalidExitValueExceptionorTimeoutExceptionis 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 voidaddExceptionMessageSuffix(ProcessAttributes attributes, StringBuilder sb, ProcessOutput output) static voidcheckExit(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 caseInvalidExitValueExceptionorTimeoutExceptionis 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)
-