Skip to main content

Module error

Module error 

Source
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§

KernelError
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}/decide that 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/unfreeze refused 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).