类 A2AError.Builder

java.lang.Object
io.github.a2ap.core.exception.A2AError.Builder
封闭类:
A2AError

public static class A2AError.Builder extends Object
Builder class for A2AError
  • 方法详细资料

    • message

      public A2AError.Builder message(String message)
      Sets the error message
      参数:
      message - The error message
      返回:
      This builder for chaining
    • code

      public A2AError.Builder code(int code)
      Sets the error code
      参数:
      code - The error code
      返回:
      This builder for chaining
    • data

      public A2AError.Builder data(Object data)
      Sets the additional data
      参数:
      data - The additional data
      返回:
      This builder for chaining
    • taskId

      public A2AError.Builder taskId(String taskId)
      Sets the task ID
      参数:
      taskId - The task ID
      返回:
      This builder for chaining
    • cause

      public A2AError.Builder cause(Throwable cause)
      Sets the cause
      参数:
      cause - The cause
      返回:
      This builder for chaining
    • build

      public A2AError build()
      Builds a new A2AError instance
      返回:
      The built instance