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. Use this when the object is validated later, for example as part of an enclosing object built withValidatedBuilder.build(), or when it does not need to be valid on its own.- Overrides:
buildUncheckedin classValidatedBuilder<TaskError>- Returns:
- the object being built
-
toString
-