pub enum AxCode {
Show 44 variants
PathNotFound,
ToolUnknown,
ToolUnavailable,
InvalidArgs,
OutsideWriteDomain,
VersionConflict,
GateDenied,
BudgetExhausted,
Timeout,
Provider,
EvidenceMissing,
LoopSuspected,
LocatorInvalid,
SandboxDenied,
Busy,
DraftStale,
GoalConflict,
TaintedAction,
RepairBusy,
DelegationDepth,
ApprovalPending,
ApprovalDenied,
CrossBuildingDenied,
DigestSuspect,
CredentialMissing,
ModelUnchosen,
ConfigInvalid,
CasCorrupt,
StorageFatal,
WorktreeBusy,
BrowserUnavailable,
EndpointDialectUnsupported,
WireMismatch,
LogVersionUnsupported,
LedgerHeld,
HistoryUnproven,
SecretEgress,
DiscardIrreversible,
BackpressureShed,
ToolOutcomeUnknown,
PlanMissing,
ProviderAccountsExhausted,
AuthRequired,
PairingRefused,
}Expand description
Closed set of error codes.
Extension is additive only; the wire spelling lives in AxCode::as_str.
Variants§
PathNotFound
ToolUnknown
InvalidArgs
OutsideWriteDomain
VersionConflict
GateDenied
BudgetExhausted
Timeout
Provider
EvidenceMissing
LoopSuspected
LocatorInvalid
SandboxDenied
Busy
The address or resource this names is taken right now.
Distinct from WorktreeBusy and RepairBusy, which are
about those two mechanisms in particular: this one says a
run is working where the caller wants to act, and names the
run so the caller can stop it and act.
DraftStale
GoalConflict
TaintedAction
RepairBusy
DelegationDepth
ApprovalPending
ApprovalDenied
CrossBuildingDenied
DigestSuspect
CredentialMissing
ModelUnchosen
No model is chosen for the tag a caller asked for. Apart from
ConfigInvalid because its recovery differs: a new city starts
here and is sent to the settings page, while ConfigInvalid
also answers a room whose frozen model changed, which a new
session recovers.
ConfigInvalid
CasCorrupt
StorageFatal
WorktreeBusy
EndpointDialectUnsupported
WireMismatch
LogVersionUnsupported
LedgerHeld
Another process holds this city’s Ledger for writing. Loadtime, because the process it refuses is the one that may not write.
HistoryUnproven
A served city is still proving the history it opened from, and
its writer takes no line until the proof is whole. Loadtime for
the same reason as LedgerHeld: the refused process may not write
yet (crates/storage/Spec.lean §8-30).
SecretEgress
DiscardIrreversible
BackpressureShed
ToolOutcomeUnknown
PlanMissing
ProviderAccountsExhausted
AuthRequired
PairingRefused
Implementations§
Source§impl AxCode
impl AxCode
Sourcepub const ALL: [AxCode; 44]
pub const ALL: [AxCode; 44]
Every code, in the order the SPEC table lists them. Data face for tests and
xtask specalign.
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
The wire spelling. Sole spelling authority; serde and Display reuse it.
Sourcepub fn parse(raw: &str) -> Option<AxCode>
pub fn parse(raw: &str) -> Option<AxCode>
Wire spelling back to code; None is the caller’s fail-closed branch.
Sourcepub fn carrier(&self) -> Carrier
pub fn carrier(&self) -> Carrier
The carrier declaration (C9): which event carries this code into
history. Sole declaration site, exhaustive on purpose — a new code
without a carrier decision is a compile error. The loadtime arm is
the closed whitelist of codes that arise only while this process
cannot write the Ledger; crates/kernel/Spec.lean §12 gives each one’s
reason.