Expand description
The kernel’s error type (spec 3.2 §7.1).
Every fallible kernel API returns KernelError. It converts into
adk_core::AdkError at the boundary with an ErrorComponent::Server component and a
kernel.* code, so a control-plane route answers with the status and problem JSON the
rest of adk-server uses.
Enums§
- Kernel
Error - What went wrong in the kernel (spec 3.2 §7.1).
Constants§
- AGENDA_
NOT_ FOUND_ CODE - Error code of
KernelError::AgendaNotFound. - AGENDA_
STATE_ CODE - Error code of
KernelError::AgendaState. - AGENT_
INVALID_ CODE - Error code of an agent definition that breaks a rule of spec 3.3 §5.7: its name, id, instructions, folder or uses.
- AGENT_
NOT_ FOUND_ CODE - Error code of an agent id the kernel does not keep (spec 3.3 §5.7).
- AGENT_
OUT_ OF_ DATE_ CODE - Error code of an agent change made against an older version (spec 3.3 §5.7).
- AGENT_
REFUSED_ CODE - Error code of an agent change the agent table refuses: a caller who is not a person, a device, high risk without presence, more than an area or a suggesting agent allows (spec 3.3 §5.7, S-I11, S-I12).
- AGENT_
UNCONFIRMED_ CODE - Error code of an agent change applied with a digest that is not its preview’s (spec 3.3 §5.7).
- CONFIG_
CODE - Error code of
KernelError::Config. - CONTROL_
PLANE_ CODE - Error code of
KernelError::ControlPlane. - CROSSING_
DENIED_ CODE - Error code of a crossing between partitions that no rule permits (spec 3.2 K-I15).
- DECIDE_
NOT_ HERE_ CODE - Error code of a decision on
POST /approvals/{id}/decidethat the caller’s surface may not give (spec 3.3 §7.2): it is answered in the home or on the kernel’s own terminal. - FROZEN_
CODE - Error code of
KernelError::Frozen. - INVALID_
STATE_ CODE - Error code of
KernelError::InvalidState. - IO_CODE
- Error code of
KernelError::Io. - LEDGER_
INVALID_ CODE - Error code of a ledger row the ledger refuses (spec 3.2 §9.2 K-I19).
- LIFECYCLE_
CODE - Error code of
KernelError::Lifecycle. - MEMORY_
CROSSING_ CODE - Error code of a partition’s memory call that names another partition’s scope (spec 3.2 K-I15).
- MEMORY_
DELETE_ CODE - Error code of a delete by query on a partition’s memory, which would reach every partition’s scope.
- NOT_
FOUND_ CODE - Error code of
KernelError::NotFound. - QUOTA_
CODE - Error code of
KernelError::Quota. - RESUME_
NOT_ HERE_ CODE - Error code of
POST /kernel/unfreezerefused over HTTP: resuming happens only in the web home or on a paired local terminal (spec 3.3 S-I10). - SERDE_
CODE - Error code of
KernelError::Serde. - SERVICE_
CODE - Error code of
KernelError::Service. - SPAWN_
REJECTED_ CODE - Error code of a spawn the run store refuses because another run holds its concurrency key and the run does not queue behind it.
- STORE_
CODE - Error code of
KernelError::Store. - UNAUTHORIZED_
CODE - Error code of
KernelError::Unauthorized. - UNSUPPORTED_
CODE - Error code of a call a store does not support, such as attachments on a device store that keeps none.
Type Aliases§
- Result
- Result of a fallible kernel operation (spec 3.2 §7.1).