Class TaskError.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<TaskError>
co.yellowdog.platform.model.TaskError.Builder
- Enclosing class:
TaskError
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.causedFailure(Boolean causedFailure) A description of the error.The ID of the node where the error occurred.processExitCode(Integer processExitCode) statusAtFailure(TaskStatus statusAtFailure) The time at which the error occurred.toString()The ID of the worker where the error occurred.Methods inherited from class ValidatedBuilder
build, validate
-
Method Details
-
timestamp
The time at which the error occurred.- Returns:
this.
-
nodeId
The ID of the node where the error occurred.- Returns:
this.
-
workerId
The ID of the worker where the error occurred.- Returns:
this.
-
error
-
errorType
- Returns:
this.
-
statusAtFailure
- Returns:
this.
-
processExitCode
- Returns:
this.
-
causedFailure
Whether thisTaskErrorwas the cause of theTaskmoving to aTaskStatus.FAILEDstate. Can be null if the agent is an old version.- Returns:
this.
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUncheckedin classValidatedBuilder<TaskError>- Returns:
- the object being built
-
toString
-