Class TaskError

java.lang.Object
co.yellowdog.platform.model.TaskError
All Implemented Interfaces:
Serializable

public class TaskError extends Object implements Serializable
Holds details of an error that occurred during execution of the task.
See Also:
  • Method Details

    • raisedNow

      public static TaskError raisedNow(String workerId, @NonNull @NonNull String error)
      Creates a new TaskError instance with the current timestamp and the specified workerId and error.
      Parameters:
      workerId - the workerId
      error - the error description
      Returns:
      a new TaskError instance
    • builder

      public static TaskError.Builder builder()
    • getTimestamp

      public Instant getTimestamp()
      The time at which the error occurred.
    • getWorkerId

      public String getWorkerId()
      The ID of the worker where the error occurred.
    • getError

      public String getError()
      A description of the error.
    • setTimestamp

      public void setTimestamp(Instant timestamp)
      The time at which the error occurred.
    • setWorkerId

      public void setWorkerId(String workerId)
      The ID of the worker where the error occurred.
    • setError

      public void setError(String error)
      A description of the error.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object