Class TaskException

Object
Throwable
Exception
RuntimeException
akka.javasdk.agent.task.TaskException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TaskException.Cancelled, TaskException.Failed, TaskException.ResultRejected, TaskException.TypeMismatch

Base exception for task terminal states. Thrown by TaskClient.resultAsync(akka.javasdk.agent.task.TaskDefinition<R>) when a task reaches a non-successful terminal state.
See Also:
  • Method Details

    • taskId

      public String taskId()
      The ID of the task that failed or was cancelled.
    • reason

      public String reason()
      The reason the task failed or was cancelled.