pub enum ComputerUseError {
Mcp(String),
Decode(String),
IdentityMismatch(String),
InvalidRequest(String),
Unsupported {
operation: &'static str,
},
Runtime(String),
}Expand description
Structured error surfaced by the computer-use graph, runtime trait, and MCP adapter.
The variants distinguish caller mistakes (InvalidRequest),
transport faults (Mcp), payload decoding failures
(Decode), identity/authorization mismatches
(IdentityMismatch), unimplemented adapter
capabilities (Unsupported), and residual invariant
violations (Runtime). Convert to adk_core::AdkError
with ? or .into() when returning through an ADK trait boundary.
Variants§
Mcp(String)
The underlying MCP transport or tool invocation failed.
Decode(String)
A wire payload could not be decoded into the expected contract type.
IdentityMismatch(String)
A runtime response did not match the authenticated ADK principal or session.
InvalidRequest(String)
A request argument violated a documented precondition.
Unsupported
The runtime adapter does not implement the requested control operation.
Runtime(String)
A runtime invariant expected by the graph was not satisfied.
Trait Implementations§
Source§impl Debug for ComputerUseError
impl Debug for ComputerUseError
Source§impl Display for ComputerUseError
impl Display for ComputerUseError
Source§impl Error for ComputerUseError
impl Error for ComputerUseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()