Package com.google.genkit.ai.agent
Class RuntimeError
java.lang.Object
com.google.genkit.ai.agent.RuntimeError
RuntimeError represents a runtime error that occurred during agent execution.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeError.Builderbuilder()Creates a builder for RuntimeError.Returns additional error details.Returns the error message.Returns the status code of the error.voidsetDetails(Object details) Sets additional error details.voidsetMessage(String message) Sets the error message.voidSets the status code.
-
Constructor Details
-
RuntimeError
public RuntimeError()Default constructor.
-
-
Method Details
-
builder
Creates a builder for RuntimeError.- Returns:
- a new builder
-
getStatus
Returns the status code of the error.- Returns:
- the status
-
setStatus
Sets the status code.- Parameters:
status- the status code
-
getMessage
Returns the error message.- Returns:
- the message
-
setMessage
Sets the error message.- Parameters:
message- the message
-
getDetails
Returns additional error details.- Returns:
- the details
-
setDetails
Sets additional error details.- Parameters:
details- the details
-