Skip to content

ExecuteError

Data carried by an ExecuteError — raised when the LLM call fails after exhausting all retry attempts. Implementations wrap this in the language-appropriate exception type while preserving the accumulated conversation state for recovery or debugging.

---
title: ExecuteError
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ExecuteError {
        +string message
        +Message[] messages
    }
    class Message {
        +string role
        +ContentPart[] parts
        +dictionary metadata
    }
    ExecuteError *-- Message
message: "LLM call failed after 3 retries: rate limit exceeded"
messages:
- role: system
parts:
- kind: text
value: You are a helpful assistant.
- role: user
parts:
- kind: text
value: Hello
NameTypeDescription
messagestringHuman-readable error description including retry count and underlying cause
messagesMessage[]The full conversation state at the time of failure, enabling the caller to retry with the accumulated messages

The following types are composed within ExecuteError: