Class TaskErrorSelector.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<TaskErrorSelector>
co.yellowdog.platform.model.TaskErrorSelector.Builder
- Enclosing class:
TaskErrorSelector
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.errorTypes(Selection<String> errorTypes) processExitCodes(Selection<Integer> processExitCodes) statusesAtFailure(Selection<TaskStatus> statusesAtFailure) toString()Methods inherited from class ValidatedBuilder
build, validate
-
Method Details
-
errorTypes
-
statusesAtFailure
- Parameters:
A-Selectionof theTaskStatuses that theTaskmust have been in at the point of error, can be null.- Returns:
this.
-
processExitCodes
ASelectionof the process exit codes theTaskmust have errored for, can be null.Note that if there is a processExitCode, the error type must be
TaskErrorType.PROCESS_NON_ZERO_EXIT. -
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUncheckedin classValidatedBuilder<TaskErrorSelector>- Returns:
- the object being built
-
toString
-