Class RuntimeError

java.lang.Object
com.google.genkit.ai.agent.RuntimeError

public class RuntimeError extends Object
RuntimeError represents a runtime error that occurred during agent execution.
  • Constructor Details

    • RuntimeError

      public RuntimeError()
      Default constructor.
  • Method Details

    • builder

      public static RuntimeError.Builder builder()
      Creates a builder for RuntimeError.
      Returns:
      a new builder
    • getStatus

      public String getStatus()
      Returns the status code of the error.
      Returns:
      the status
    • setStatus

      public void setStatus(String status)
      Sets the status code.
      Parameters:
      status - the status code
    • getMessage

      public String getMessage()
      Returns the error message.
      Returns:
      the message
    • setMessage

      public void setMessage(String message)
      Sets the error message.
      Parameters:
      message - the message
    • getDetails

      public Object getDetails()
      Returns additional error details.
      Returns:
      the details
    • setDetails

      public void setDetails(Object details)
      Sets additional error details.
      Parameters:
      details - the details