Skip to main content

Module error

Module error 

Source
Expand description

Errors of the Cloud connector. Messages are safe to print: they never carry tokens, keys, device codes or request bodies.

Structs§

InstanceCap
An instance_limit refusal as far as it is shown.
PlanNeed
What a 402 plan_required says, as far as it is shown.
PolicyDenial
A server-enforced policy refusal (policy_denied, API §7.2).
Quota
A used-up quota as far as it is shown and acted on (API §8.1).
Revocation
What a revocation statement says, as far as it is shown (E12).
StorageFull
A full LeanCTX Cloud storage (storage_quota_exceeded), in bytes.

Enums§

CloudError
NextStep
What helps with a limit refusal (next_step of the service).
PermitCheck
Which check refused a not_permitted claim (Cloud task #17).
TaskRefusal
Why Cloud refused a task request (the reason of C0 1.9 §1).

Constants§

CODE_DENIED
A device code the person refused in the browser.
CODE_EXPIRED
A device code that ran out before anyone approved it.
LOCKED_MARK
The part every locked-workspace line shares; cloud sync prints such a refusal once per run.
MONTHLY_RESOURCES
Monthly quotas reset at the start of the next calendar month (UTC).
NOT_READY
409 not_ready: Cloud cannot serve a signed answer yet (plans without a control key, contract §37.2). Kept as the code of a Server error.
PLAN_LIMITS
The 1.x engine-seat text: the limits worded as everywhere (E10; plan limits of 17.11.: an Enterprise seat gets what a Team seat gets).
RECOVER_HINT
Where a person frees or recovers an engine slot (P7): the recovery route (POST /api/v1/orgs/{o}/instances/{id}/recover, owner with a second factor) is on the web only.
RETRY_AFTER_CAP_S
The longest retry_after_s an answer may ask for (32 days); a larger one (up to u64::MAX) is shortened to this before any time arithmetic.
TRIAL_CODE_EXPIRED
A --trial device code that ran out (CloudError::for_trial).
TRIAL_USED
The code of a one-step trial refusal (402 trial_used).

Functions§

amount_text
A quota amount in its resource’s unit: GiB for bytes, $ for model credit, a count otherwise.
locked_line
The one line of a locked workspace (reason trial_ended/plan_ended).
quota_label
A quota resource as people read it (storage_bytes is “storage”).